src/cmdlib.sh: Allow use of a mirrors for getting the installer ISO.#335
src/cmdlib.sh: Allow use of a mirrors for getting the installer ISO.#335miabbott merged 1 commit intocoreos:masterfrom darkmuggle:mirror_iso
Conversation
|
not sure I quite understand. |
|
I think is more about using a local/internal mirror. |
| INSTALLER_CHECKSUM=https://download.fedoraproject.org/pub/$repository_dir/releases/$release/Everything/$arch/iso/Fedora-Everything-$release-1.2-$arch-CHECKSUM | ||
| INSTALLER_MIRROR="${INSTALLER_MIRROR:-https://download.fedoraproject.org}" | ||
| INSTALLER_URL="${INSTALLER_MIRROR}/pub/$repository_dir/releases/$release/Everything/$arch/iso" | ||
| INSTALLER="${INSTALLER_URL}/Fedora-Everything-netinst-$arch-$release-1.2.iso" |
There was a problem hiding this comment.
This is not a knock on this change, but this filename is not static:
F27 - https://fedora.mirror.constant.com/fedora/linux/releases/27/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-27-1.6.iso
F28 - https://fedora.mirror.constant.com/fedora/linux/releases/28/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-28-1.1.iso
F29 - https://fedora.mirror.constant.com/fedora/linux/releases/29/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-29-1.2.iso
There was a problem hiding this comment.
yeah if the intent here is to use F28 instead of F29 then ti's not going to work because f28 went out on the first beta candidate (1.1) where f29 went out on the 2nd beta candidate (1.2) so there is still a difference in the filename.
There was a problem hiding this comment.
The intent on the PR was not to change the static filenames; I would consider that a separate PR. My intent was to allow a user-specified mirror/location for the bits.
Adding a lookup would be easy enough:
suffix=""
case $release in
27) echo 'srly?'; suffix=1.6;;
28) suffix=1.1;;
29) suffix=1.2;;
*) echo "unkown release"; exit 10;;
esac
But given that our stated intent is to remove the need for an installer URL, it seems unnecessary.
Correct. The intent is to allow someone to pick a local mirror. |
|
We should probably accept a URL to a treeinfo file: https://dl.fedoraproject.org/pub/fedora/linux/releases/29/Everything/x86_64/os/.treeinfo And then parse that. |
|
since our goal is to get rid of anaconda and we already have the |
Probably not. But if this change helps the RHCOS pipeline, I'm OK with merging it. |
+1 if it helps.. I maybe just need some more context. |
|
Ugh, I have been heads down and missed this. The short-story is the when running COSA behind the Red Hat firewall, With |
|
so the additional sugar this PR adds is that we have to only define one env var vs two? vs ? |
|
Correct, it defines a single URL with the assumption that replacing ".iso" w/ "-CHECKSUM" will yield the proper result.
|
|
hit an issue with a build I was doing today: Looks like it might be related to this change. |
Revert "Merge pull request #335 from darkmuggle/mirror_iso"
Allow use of a mirror for the installer image.