-
Notifications
You must be signed in to change notification settings - Fork 661
Add hack/update-template-almalinux.sh
#2796
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
AkihiroSuda
merged 2 commits into
lima-vm:master
from
norio-nomura:update-template-almalinux.sh
Oct 25, 2024
Merged
Add hack/update-template-almalinux.sh
#2796
AkihiroSuda
merged 2 commits into
lima-vm:master
from
norio-nomura:update-template-almalinux.sh
Oct 25, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The implementation for detecting minor version upgrades is still needed. |
2d0cd7d
to
2afaa9c
Compare
|
AkihiroSuda
reviewed
Oct 25, 2024
10 tasks
```console $ hack/update-template-almalinux.sh update-template-almalinux.sh: Update the AlmaLinux image location in the specified templates Usage: update-template-almalinux.sh [--version-major <major version>] <template.yaml>... Description: This script updates the AlmaLinux image location in the specified templates. If the image location in the template contains a minor version and release date in the URL, the script replaces it with the latest available minor version and date. Image location basename format: AlmaLinux-<major version>-GenericCloud-[latest|<major version>.<minor version>-<date>].<arch>.qcow2 Published AlmaLinux image information is fetched from the following URLs: https://repo.almalinux.org/almalinux/<major version>/cloud/<arch>/images/ To parsing html, this script requires 'htmlq' or 'pup' command. The downloaded files will be cached in the Lima cache directory. Examples: Update the AlmaLinux image location in templates/**.yaml: $ update-template-almalinux.sh templates/**.yaml Update the AlmaLinux image location in ~/.lima/almalinux/lima.yaml: $ update-template-almalinux.sh ~/.lima/almalinux/lima.yaml $ limactl factory-reset almalinux Update the AlmaLinux image location to major version 9 in ~/.lima/almalinux/lima.yaml: $ update-template-almalinux.sh --version-major 9 ~/.lima/almalinux/lima.yaml $ limactl factory-reset almalinux Flags: --version-major <version> Use the specified version. The version must be 8 or later. -h, --help Print this help message ``` Signed-off-by: Norio Nomura <[email protected]>
2afaa9c
to
44f2d95
Compare
… header Signed-off-by: Norio Nomura <[email protected]>
fixed an issue where re-downloading was not working for pages that do not return a |
AkihiroSuda
approved these changes
Oct 25, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Thanks! 🙏🏻 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to add AlmaLinux support as per #1347.