Add -L flag to curl in scripts/get-flatcar to follow redirects.#1551
Add -L flag to curl in scripts/get-flatcar to follow redirects.#1551bugre wants to merge 1 commit into
Conversation
Needed as downloads from 'channel.flatcar-linux.net' now redirect (302) to 'flatcar.cdn.cncf.io/channel'.
|
Hi @bugre I actually was about to create an issue + PR for the exact same thing. Also, it would be nice to add an $ARCH variable/parameter to be able to select aarch64/arm64 next to the x64/amd64. If you like I can put my version in a Gist as a reference, instead of us both creating a PR for the same thing... |
|
Hi @bjwschaap, I'll be away for a few days, when i'm back i could pull the upstream changes into my fork and try adding your diff to it.
|
Flatcar downloads from '[channel].flatcar-linux.net' now redirect (302) to 'flatcar.cdn.cncf.io/[channel]', so to still point the base url to flatcar's own domain, adding the '-L' ( '--location' ) will allow the script correctly get the needed files.