From 63cf02b4697e38da6dbb64409f9c40b24d5b8345 Mon Sep 17 00:00:00 2001 From: bugre Date: Tue, 3 Mar 2026 17:42:37 -0300 Subject: [PATCH] Add -L flag to curl in get-flatcar script to follow redirects. Needed as downloads from 'channel.flatcar-linux.net' now redirect (302) to 'flatcar.cdn.cncf.io/channel'. --- scripts/get-flatcar | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/get-flatcar b/scripts/get-flatcar index b9e280ef6..06018f12d 100755 --- a/scripts/get-flatcar +++ b/scripts/get-flatcar @@ -39,37 +39,37 @@ fi echo "Downloading Flatcar Linux $CHANNEL $VERSION images and sigs to $DEST" echo "Flatcar Linux Image Signing Key" -curl -f# https://www.flatcar.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc -o "${DEST}/Flatcar_Image_Signing_Key.asc" +curl -L -f# https://www.flatcar.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc -o "${DEST}/Flatcar_Image_Signing_Key.asc" $GPG --import <"$DEST/Flatcar_Image_Signing_Key.asc" || true # Version echo "version.txt" -curl -f# "${BASE_URL}/version.txt" -o "${DEST}/version.txt" +curl -L -f# "${BASE_URL}/version.txt" -o "${DEST}/version.txt" # PXE kernel and sig echo "flatcar_production_pxe.vmlinuz..." -curl -f# "${BASE_URL}/flatcar_production_pxe.vmlinuz" -o "${DEST}/flatcar_production_pxe.vmlinuz" +curl -L -f# "${BASE_URL}/flatcar_production_pxe.vmlinuz" -o "${DEST}/flatcar_production_pxe.vmlinuz" echo "flatcar_production_pxe.vmlinuz.sig" -curl -f# "${BASE_URL}/flatcar_production_image.vmlinuz.sig" -o "${DEST}/flatcar_production_pxe.vmlinuz.sig" +curl -L -f# "${BASE_URL}/flatcar_production_image.vmlinuz.sig" -o "${DEST}/flatcar_production_pxe.vmlinuz.sig" # PXE initrd and sig echo "flatcar_production_pxe_image.cpio.gz" -curl -f# "${BASE_URL}/flatcar_production_pxe_image.cpio.gz" -o "${DEST}/flatcar_production_pxe_image.cpio.gz" +curl -L -f# "${BASE_URL}/flatcar_production_pxe_image.cpio.gz" -o "${DEST}/flatcar_production_pxe_image.cpio.gz" echo "flatcar_production_pxe_image.cpio.gz.sig" -curl -f# "${BASE_URL}/flatcar_production_pxe_image.cpio.gz.sig" -o "${DEST}/flatcar_production_pxe_image.cpio.gz.sig" +curl -L -f# "${BASE_URL}/flatcar_production_pxe_image.cpio.gz.sig" -o "${DEST}/flatcar_production_pxe_image.cpio.gz.sig" # Install image echo "flatcar_production_image.bin.bz2" -curl -f# "${BASE_URL}/flatcar_production_image.bin.bz2" -o "${DEST}/flatcar_production_image.bin.bz2" +curl -L -f# "${BASE_URL}/flatcar_production_image.bin.bz2" -o "${DEST}/flatcar_production_image.bin.bz2" echo "flatcar_production_image.bin.bz2.sig" -curl -f# "${BASE_URL}/flatcar_production_image.bin.bz2.sig" -o "${DEST}/flatcar_production_image.bin.bz2.sig" +curl -L -f# "${BASE_URL}/flatcar_production_image.bin.bz2.sig" -o "${DEST}/flatcar_production_image.bin.bz2.sig" # Install oem image if [[ -n "${IMAGE_NAME-}" ]]; then echo "${IMAGE_NAME}" - curl -f# "${BASE_URL}/${IMAGE_NAME}" -o "${DEST}/${IMAGE_NAME}" + curl -L -f# "${BASE_URL}/${IMAGE_NAME}" -o "${DEST}/${IMAGE_NAME}" echo "${IMAGE_NAME}.sig" - curl -f# "${BASE_URL}/${IMAGE_NAME}.sig" -o "${DEST}/${IMAGE_NAME}.sig" + curl -L -f# "${BASE_URL}/${IMAGE_NAME}.sig" -o "${DEST}/${IMAGE_NAME}.sig" fi # verify signatures