Update get-fedora-coreos convenience script

* Refer to Fedora CoreOS 31 download paths
* https://github.com/poseidon/typhoon/pull/624
This commit is contained in:
Dalton Hubble
2020-02-08 15:35:28 -08:00
parent 3767ef93cb
commit 90a91f7306

View File

@@ -4,8 +4,8 @@
#
set -eou pipefail
STREAM=${1:-"testing"}
VERSION=${2:-"30.20191002.0"}
STREAM=${1:-"stable"}
VERSION=${2:-"31.20200113.3.1"}
DEST_DIR=${3:-"$PWD/examples/assets"}
DEST=$DEST_DIR/fedora-coreos
BASE_URL=https://builds.coreos.fedoraproject.org/prod/streams/$STREAM/builds/$VERSION/x86_64
@@ -24,12 +24,12 @@ fi
echo "Downloading Fedora CoreOS $STREAM $VERSION images to $DEST"
# PXE kernel
echo "fedora-coreos-$VERSION-installer-kernel-x86_64"
curl -# $BASE_URL/fedora-coreos-$VERSION-installer-kernel-x86_64 -o $DEST/fedora-coreos-$VERSION-installer-kernel-x86_64
echo "fedora-coreos-$VERSION-live-kernel-x86_64"
curl -# $BASE_URL/fedora-coreos-$VERSION-live-kernel-x86_64 -o $DEST/fedora-coreos-$VERSION-live-kernel-x86_64
# PXE initrd
echo "fedora-coreos-$VERSION-installer-initramfs.x86_64.img"
curl -# $BASE_URL/fedora-coreos-$VERSION-installer-initramfs.x86_64.img -o $DEST/fedora-coreos-$VERSION-installer-initramfs.x86_64.img
echo "fedora-coreos-$VERSION-live-initramfs.x86_64.img"
curl -# $BASE_URL/fedora-coreos-$VERSION-live-initramfs.x86_64.img -o $DEST/fedora-coreos-$VERSION-live-initramfs.x86_64.img
# Install image
echo "fedora-coreos-$VERSION-metal.x86_64.raw.xz"