Skip to content

Add hack/update-template-fedora.sh #2826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

norio-nomura
Copy link
Contributor

$ hack/update-template-fedora.sh
update-template-fedora.sh: Update the Fedora Linux image location in the specified templates

Usage:
  update-template-fedora.sh [--version (<version number>|release|development[/<version number>]|rawhide)] <template.yaml>...

Description:
  This script updates the Fedora Linux image location in the specified templates.
  Image location basename format:

    Fedora-Cloud-Base[-<target vendor>]-<version>-<build info>.<arch>.qcow2
    Fedora-Cloud-Base[-<target vendor>].<arch>-<version>-<build info>.qcow2

  Published Fedora Linux image information is fetched from the following URL:

    https://dl.fedoraproject.org/pub/fedora/imagelist-fedora

  The downloaded files will be cached in the Lima cache directory.

Examples:
  Update the Fedora Linux image location in templates/**.yaml:
  $ update-template-fedora.sh templates/**.yaml

  Update the Fedora Linux image location to version 41 in ~/.lima/fedora/lima.yaml:
  $ update-template-fedora.sh --version 41 ~/.lima/fedora/lima.yaml
  $ limactl factory-reset fedora

Flags:
  --version <version> Use the specified version.
                      The version must be <version number>, 'release', 'development[/<version number>]', or 'rawhide'.
  -h, --help          Print this help message

This PR aims to add Fedora Linux support as per #1347.

```console
$ hack/update-template-fedora.sh
update-template-fedora.sh: Update the Fedora Linux image location in the specified templates

Usage:
  update-template-fedora.sh [--version (<version number>|release|development[/<version number>]|rawhide)] <template.yaml>...

Description:
  This script updates the Fedora Linux image location in the specified templates.
  Image location basename format:

    Fedora-Cloud-Base[-<target vendor>]-<version>-<build info>.<arch>.qcow2
    Fedora-Cloud-Base[-<target vendor>].<arch>-<version>-<build info>.qcow2

  Published Fedora Linux image information is fetched from the following URL:

    https://dl.fedoraproject.org/pub/fedora/imagelist-fedora

  The downloaded files will be cached in the Lima cache directory.

Examples:
  Update the Fedora Linux image location in templates/**.yaml:
  $ update-template-fedora.sh templates/**.yaml

  Update the Fedora Linux image location to version 41 in ~/.lima/fedora/lima.yaml:
  $ update-template-fedora.sh --version 41 ~/.lima/fedora/lima.yaml
  $ limactl factory-reset fedora

Flags:
  --version <version> Use the specified version.
                      The version must be <version number>, 'release', 'development[/<version number>]', or 'rawhide'.
  -h, --help          Print this help message
```

Signed-off-by: Norio Nomura <[email protected]>
`overriding` may be empty when called from `update-template.sh`

Signed-off-by: Norio Nomura <[email protected]>
@norio-nomura norio-nomura marked this pull request as ready for review October 31, 2024 08:09
@AkihiroSuda AkihiroSuda added this to the v1.0 milestone Nov 1, 2024
@AkihiroSuda AkihiroSuda added the guest/fedora Guest: Fedora label Nov 1, 2024
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit aa37649 into lima-vm:master Nov 1, 2024
28 checks passed
@AkihiroSuda AkihiroSuda mentioned this pull request Nov 1, 2024
10 tasks
@norio-nomura norio-nomura deleted the update-template-fedora.sh branch November 1, 2024 07:55
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guest/fedora Guest: Fedora
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants