-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Add Arch Linux to Quickget #146
Conversation
quickget
Outdated
validate_release "releases_archlinux" | ||
web_get "https://mirror.rackspace.com/archlinux/iso/latest/sha1sums.txt" "${VM_PATH}" | ||
HASH=$(head -1 "${VM_PATH}/sha1sums.txt" | cut -d' ' -f1) | ||
ISO=$(head -1 "${VM_PATH}/sha1sums.txt" | cut -d' ' -f3) | ||
URL="https://mirror.rackspace.com/archlinux/iso/latest/${ISO}" | ||
web_get "${URL}" "${VM_PATH}" | ||
check_hash "${ISO}" "${HASH}" | ||
make_vm_config "${ISO}" |
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.
Since the Arch ISO has its release date in the file name, there is no static URL to fetch the latest ISO from.
That's why I get the checksum file first (which has a static URL) and get the ISO filename from it. Then, download the ISO, check it, and create the config file 🎉
One potential issue/inconvenience that just came to my mind: Because the ISO filename changes with every release, running One solution would be to rename the ISO file to What do you think? |
There is also this suggestion from Reddit on how to get the latest ISO. |
Using the API as suggested on Reddit is sensible 👍 |
I'll test it now, but I think this PR is ready to merge. Why do I always push before testing the code? 😂 |
Yep, works as expected! Ready to merge from my side 🎉 |
* quickget: Add Arch Linux * Update README to include Arch Linux * Use JSON API to determine SHA1 hash and Arch ISO name * Use wget instead of curl
This PR adds the ability to download the latest Arch ISO with
quickget
.I mostly followed the comments at the beginning of the
quickget
file, this made this process much easier. Thanks or that!