#!/bin/bash # Copyright (c) 2013 The CoreOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. set -e -o pipefail function ensure_tool() { local tool="${1}" command -v "${tool}" >/dev/null || { echo "error: command '${tool}' not found" >&2 ; exit 1; } } if command -v lbzip2 >/dev/null; then BZIP_UTIL=lbzip2 else BZIP_UTIL=bzip2 ensure_tool "${BZIP_UTIL}" fi toolset=( blockdev btrfstune cp cut dd gawk gpg grep head ls lsblk mkdir mkfifo mktemp mount rm sed sort tee udevadm wget wipefs ) for t in "${toolset[@]}"; do ensure_tool "${t}"; done error_output() { echo "Error: return code $? from $BASH_COMMAND" >&2 } default_board() { if [[ -e /usr/share/flatcar/release ]]; then gawk --field-separator '=' '/FLATCAR_RELEASE_BOARD=/ { print $2 }' /usr/share/flatcar/release return fi case "$(uname -m)" in aarch64 ) echo "arm64-usr" ;; * ) echo "amd64-usr" ;; esac } # Finds an unmounted disk with size greater than 10GB and prints it to stdout, # otherwise prints an empty line. find_smallest_unused_disk() { local disks="$(lsblk -lnpdb -x SIZE -o NAME,SIZE $INCLUDE_MAJOR $EXCLUDE_MAJOR \ | ( while IFS= read -r line; do drive=$(echo "$line" | awk '{print $1}') size=$(echo "$line" | awk '{print $2}') mountpoints=$(lsblk -ln -o MOUNTPOINT "$drive") device_mapper_usages=$(lsblk -ln -o PATH "$drive" | grep -v "^$drive") if [[ "$size" -gt 10000000000 ]] && [[ -z "$mountpoints" ]] && [[ -z "${device_mapper_usages}" ]]; then echo "$drive" "$size" fi done))" # Get smallest disk size by looking at first entry of $disks local smallestsize="$(echo "$disks" | head -n 1 | cut -d ' ' -f 2)" # If there more then one disk having the smallest size, sort them alphabetically and take the first one local smallestdisk="$(echo "$disks" | grep "$smallestsize" | cut -d ' ' -f1 | sort | head -n 1)" echo "$smallestdisk" } # Everything we do should be user-access only! umask 077 if grep -q "^ID=flatcar$" /etc/os-release; then source /etc/os-release [[ -f /usr/share/flatcar/update.conf ]] && source /usr/share/flatcar/update.conf [[ -f /etc/flatcar/update.conf ]] && source /etc/flatcar/update.conf fi # Fall back on the current stable if os-release isn't useful : ${VERSION_ID:=current} CHANNEL_ID=${GROUP:-stable} BOARD=$(default_board) OEM_ID= for f in /oem/oem-release /usr/share/oem/oem-release /etc/oem-release; do if [[ -e $f ]]; then # Pull in OEM information too, but prefixing variables with OEM_ eval "$(sed -e 's/^/OEM_/' $f)" fi done if [[ "${OEM_ID}" = "qemu" ]] || [[ "${OEM_ID}" = "qemu_uefi" ]]; then OEM_ID="" fi USAGE="Usage: $0 {{-d }|-s} [options] Options: -d DEVICE Install Flatcar Container Linux to the given device. -D Download a Flatcar Container Linux image to the current directory, without installing it -s EXPERIMENTAL: Install Flatcar Container Linux to the smallest unmounted disk found (min. size 10GB). It is recommended to use it with -e or -I to filter the block devices by their major numbers. E.g., -e 7 to exclude loop devices or -I 8,259 for certain disk types. Read more about the numbers here: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt. -V VERSION Version to install (e.g. current, or current-2022 for the LTS 2022 stream) [default: ${VERSION_ID}]. -B BOARD Flatcar Container Linux board to use [default: ${BOARD}]. -C CHANNEL Release channel to use (e.g. beta) [default: ${CHANNEL_ID}]. -I|e EXPERIMENTAL (used with -s): List of major device numbers to in-/exclude when finding the smallest disk. -o OEM OEM type to install (e.g. 'ami' or '' to force none), using flatcar_production__image.bin.bz2 [default: ${OEM_ID:-(none, i.e., the empty string)}]. -c CLOUD Insert a cloud-init config to be executed on boot. -i IGNITION Insert an Ignition config to be executed on boot. -b BASEURL URL to the image mirror (overrides BOARD and CHANNEL). -k KEYFILE Override default GPG key for verifying image signature. -f IMAGE Install unverified local image file to disk instead of fetching. -n Copy generated network units to the root partition. -u Create UEFI boot entry -y Dry-run. Run some checks and print option settings. -v Super verbose, for debugging. -h This ;-). This tool installs Flatcar Container Linux on a block device. If you PXE booted Flatcar Container Linux on a machine then use this tool to make a permanent install. " # Image signing key: # $ gpg2 --list-keys --list-options show-unusable-subkeys \ # --keyid-format SHORT F88CFEDEFF29A5B4D9523864E25D9AED0593B34A # pub rsa4096/0593B34A 2018-02-26 [SC] # F88CFEDEFF29A5B4D9523864E25D9AED0593B34A # uid [ultimate] Flatcar Buildbot (Official Builds) # sub rsa4096/064D542D 2018-02-26 [S] [revoked: 2018-03-14] # sub rsa4096/D0FC498C 2018-03-14 [S] [revoked: 2018-09-26] # sub rsa4096/896E394F 2018-09-26 [S] [expired: 2019-09-26] # sub rsa4096/AF9CF1AF 2019-09-30 [S] [expires: 2020-09-29] # sub rsa4096/FCBEAB91 2020-08-28 [S] [expires: 2021-08-28] # sub rsa4096/250D4A42 2021-08-10 [S] [expires: 2022-08-10] # sub rsa4096/267EC954 2022-08-11 [S] [expires: 2023-08-11] GPG_KEY="-----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFqUFawBEACdnSVBBSx3negnGv7Ppf2D6fbIQAHSzUQ+BA5zEG02BS6EKbJh t5TzEKCRw6hpPC4vAHbiO8B36Y884sSU5Wc4WMiuJ0Z4XZiZ/DAOl5TFfWwhwU0l SEe/3BWKRtldEs2hM/NLT7A2pLh6gx5NVJNv7PMTDXVuS8AGqIj6eT41r6cPWE67 pQhC1u91saqIOLB1PnWxw/a7go9x8sJBmEVz0/DRS3dw8qlTx/aKSooyaGzZsfAY L1+a/xst8LG4xfyHBSAuHSqi76LXCdBogU2vgz2V46z29hYRDfQQQGb4hE7UCrLp EBOVzdQv/vAA9B4FTB+f5a7Vi4pQnM4DBqKaf8XP4wgQWBW439yqna7rKFAW+JIr /w8YbczTTlJ2FT8v8z5tbMOZ5a6nXAn45YXh5d80CzqEVnaG8Bbavw3WR3jD81BO 0WK+K2FcEXzOtWkkwmcj9PrOKVnBmBv5I+0xtpo9Do0vyONyXPDNH/I4b3xilupN bWV1SXUu8jpCf/PaNrj7oKHB9Nciv+4lqu/L5YmbaSLBxAvHSsxRpKV53dFtU+sR kQM5I774B+GnFvhd6k2uMerWFaA1aq7gv0oOm/H5ZkndR5+eS0SAx49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EYFILE= VERSION_SUMMARY='Flatcar Container Linux' CREATE_UEFI= WGET_ARGS="--tries 10 --timeout=20 --retry-connrefused" while getopts "V:B:C:DI:d:o:c:e:i:t:b:k:f:nusyvh" OPTION do case $OPTION in V) VERSION_ID="$OPTARG"; VERSION_SPECIFIED=1 ;; B) BOARD="$OPTARG" ;; C) CHANNEL_ID="$OPTARG"; CHANNEL_SPECIFIED=1 ;; D) DOWNLOAD_ONLY='true';; I) INCLUDE_MAJOR="-I $OPTARG" ;; d) DEVICE="$OPTARG" ;; o) OEM_ID="$OPTARG" ;; c) CLOUDINIT="$OPTARG" ;; e) EXCLUDE_MAJOR="-e $OPTARG" ;; i) IGNITION="$OPTARG" ;; t) ;; # compatibility option; previously set TMPDIR b) BASE_URL="${OPTARG%/}" ;; k) KEYFILE="$OPTARG" ;; f) IMAGE_FILE="$OPTARG" ;; n) COPY_NET=1;; u) CREATE_UEFI=1;; s) INSTALL_TO_SMALLEST=1 ;; y) DRY_RUN=1 ;; v) set -x ;; h) echo "$USAGE"; exit;; *) exit 1;; esac done function print_settings() { echo "\ Settings: VERSION: ${VERSION_ID} BOARD: ${BOARD} CHANNEL: ${CHANNEL_ID} OEM: ${OEM_ID:-(none)} CLOUD: ${CLOUDINIT:-(none)} IGNITION: ${IGNITION:-(none)} BASEURL: ${BASE_URL:-(none)} KEYFILE: ${KEYFILE:-(none)} IMAGE: ${IMAGE_FILE:-(none)}" } # Run Device checks, ignore if the download only flag is present if [[ -z "${DOWNLOAD_ONLY}" ]]; then # Device is required, must not be a partition, must be writable if [[ -z "${DEVICE}" ]] && [[ -z "${INSTALL_TO_SMALLEST}" ]]; then echo "$0: No target block device provided, either -d or -s is required. Or use -D to download image." >&2 echo "$USAGE" >&2 exit 1 fi if [[ -n "${INSTALL_TO_SMALLEST}" ]]; then DEVICE="$(find_smallest_unused_disk)" if [[ -z "${DEVICE}" ]]; then echo "$0: Could not find smallest disk to install (min. 10GB)." >&2 exit 1 fi fi if ! [[ $(lsblk -n -d -o TYPE "${DEVICE}") =~ ^(disk|mpath|loop|lvm)$ ]]; then echo "$0: Target block device (${DEVICE}) is not a full disk." >&2 exit 1 fi if [[ ! -w "${DEVICE}" ]]; then echo "$0: Target block device (${DEVICE}) is not writable (are you root?)" >&2 exit 1 fi if [[ -n "${CLOUDINIT}" ]]; then if [[ ! -f "${CLOUDINIT}" ]]; then echo "$0: Cloud config file (${CLOUDINIT}) does not exist." >&2 exit 1 fi if type -P coreos-cloudinit >/dev/null; then if ! coreos-cloudinit -from-file="${CLOUDINIT}" -validate; then echo "$0: Cloud config file (${CLOUDINIT}) is not valid." >&2 exit 1 fi else echo "$0: coreos-cloudinit not found. Could not validate config. Continuing..." >&2 fi fi if [[ -n "${IGNITION}" ]]; then if [[ ! -f "${IGNITION}" ]]; then echo "$0: Ignition config file (${IGNITION}) does not exist." >&2 exit 1 fi fi fi if [[ -n "${DRY_RUN}" ]]; then print_settings exit 0 fi function is_modified() { [[ -e "${WORKDIR}/disk_modified" ]] } _disk_status= function get_disk_status() { [ -n "${_disk_status}" ] || read -rt 0.1 _disk_status <> "${WORKDIR}/disk_modified" # Use a timeout of 100ms to behave like a non-blocking read echo "${_disk_status}" } function write_to_disk() { mkfifo -m 0600 "${WORKDIR}/disk_modified" # We are at the point of no return, so wipe disk labels missed below. # In particular, ZFS writes labels in the last half-MiB of the disk. dd conv=nocreat count=1024 if=/dev/zero of="${DEVICE}" \ seek=$(($(blockdev --getsz "${DEVICE}") - 1024)) status=none dd bs=1M conv=nocreat of="${DEVICE}" status=none # inform the OS of partition table changes udevadm settle local try for try in 0 1 2 4; do sleep "$try" # Give the device a bit more time on each attempt. blockdev --rereadpt "${DEVICE}" && unset try && break || echo "Failed to reread partitions on ${DEVICE}" >&2 done [ -z "$try" ] || exit 1 udevadm settle # Communicate success through FIFO when the caller can't act on the return code (exec 2>/dev/null ; echo "done" > "${WORKDIR}/disk_modified") & } function install_from_file() { if ! [ -r "${IMAGE_FILE}" ]; then echo "$0: Could not read image file: ${IMAGE_FILE}" >&2 exit 1 fi echo "Writing ${IMAGE_FILE}..." if [[ "${IMAGE_FILE}" =~ \.bz2$ ]]; then ${BZIP_UTIL} -cd "${IMAGE_FILE}" | write_to_disk else write_to_disk < "${IMAGE_FILE}" fi VERSION_SUMMARY+=" (from ${IMAGE_FILE})" } function prep_url(){ IMAGE_NAME="flatcar_production_image.bin.bz2" if [[ -n "${OEM_ID}" ]]; then IMAGE_NAME="flatcar_production_${OEM_ID}_image.bin.bz2" fi if [[ -n "${CHANNEL_SPECIFIED-}" && -z "${VERSION_SPECIFIED-}" ]]; then VERSION_ID=current fi # for compatibility with old versions that didn't support channels if [[ "${VERSION_ID}" =~ ^(alpha|beta|stable|edge)$ ]]; then CHANNEL_ID="${VERSION_ID}" VERSION_ID="current" fi if [[ -z "${BASE_URL}" ]]; then BASE_URL="https://${CHANNEL_ID}.release.flatcar-linux.net/${BOARD}" fi # if the version is "current", resolve the actual version number if [[ "${VERSION_ID}" == "current" ]]; then local VERSIONTXT_URL="${BASE_URL}/${VERSION_ID}/version.txt" VERSION_ID=$(wget ${WGET_ARGS} -qO- "${VERSIONTXT_URL}" | sed -n 's/^FLATCAR_VERSION=//p') if [[ -z "${VERSION_ID}" ]]; then echo "$0: version.txt unavailable: ${VERSIONTXT_URL}" >&2 exit 1 fi echo "Current version of Flatcar Container Linux ${CHANNEL_ID} is ${VERSION_ID}" fi IMAGE_URL="${BASE_URL}/${VERSION_ID}/${IMAGE_NAME}" SIG_NAME="${IMAGE_NAME}.sig" SIG_URL="${BASE_URL}/${VERSION_ID}/${SIG_NAME}" if ! wget ${WGET_ARGS} --spider --quiet "${IMAGE_URL}"; then echo "$0: Image URL unavailable: $IMAGE_URL" >&2 exit 1 fi if ! wget ${WGET_ARGS} --spider --quiet "${SIG_URL}"; then echo "$0: Image signature unavailable: $SIG_URL" >&2 exit 1 fi # Setup GnuPG for verifying the image signature export GNUPGHOME="${WORKDIR}/gnupg" mkdir -p "${GNUPGHOME}" if [ -n "${KEYFILE}" ]; then gpg --batch --quiet --import < "${KEYFILE}" else gpg --batch --quiet --import <<< "${GPG_KEY}" fi echo "Downloading the signature for ${IMAGE_URL}..." wget ${WGET_ARGS} --no-verbose -O "${WORKDIR}/${SIG_NAME}" "${SIG_URL}" VERSION_SUMMARY+=" ${CHANNEL_ID} ${VERSION_ID}${OEM_ID:+ (${OEM_ID})}" } function download_from_url(){ prep_url echo "Downloading, writing and verifying ${IMAGE_NAME}..." if ! wget ${WGET_ARGS} --no-verbose -O "${PWD}/${IMAGE_NAME}" "${IMAGE_URL}"; then echo "Could not download ${IMAGE_NAME}" >&2 exit 1 fi if ! gpg --batch --verify "${WORKDIR}/${SIG_NAME}" "${PWD}/${IMAGE_NAME}"; then echo "Could not verify ${IMAGE_NAME}." >&2 exit 1 fi } function install_from_url() { prep_url echo "Downloading, writing and verifying ${IMAGE_NAME}..." if ! wget ${WGET_ARGS} --no-verbose -O - "${IMAGE_URL}" \ | tee >(${BZIP_UTIL} -cd >&3) \ | gpg --batch --verify "${WORKDIR}/${SIG_NAME}" - then local EEND=( "${PIPESTATUS[@]}" ) [ ${EEND[0]} -ne 0 ] && echo "${EEND[0]}: Download of ${IMAGE_NAME} did not complete" >&2 [ ${EEND[1]} -ne 0 ] && echo "${EEND[1]}: Cannot expand ${IMAGE_NAME} to ${DEVICE}" >&2 [ ${EEND[2]} -ne 0 ] && echo "${EEND[2]}: GPG signature verification failed for ${IMAGE_NAME}" >&2 exit 1 fi 3> >(write_to_disk) wait if [ "$(get_disk_status)" != "done" ]; then echo "write_to_disk: Failed writing image to disk" >&2 exit 1 fi } function write_cloudinit() { if [[ -n "${CLOUDINIT}${COPY_NET}" ]]; then ( # The ROOT partition should be #9 but make no assumptions here! # Also don't mount by label directly in case other devices conflict. local ROOT_DEV=$(blkid -l -t "LABEL=ROOT" -o device "${DEVICE}"*) mkdir -p "${WORKDIR}/rootfs" case $(blkid -l -t "LABEL=ROOT" -o value -s TYPE "${ROOT_DEV}") in "btrfs") mount -t btrfs -o subvol=root "${ROOT_DEV}" "${WORKDIR}/rootfs" ;; *) mount "${ROOT_DEV}" "${WORKDIR}/rootfs" ;; esac trap 'umount "${WORKDIR}/rootfs"' EXIT if [[ -n "${CLOUDINIT}" ]]; then echo "Installing cloud-config..." mkdir -p "${WORKDIR}/rootfs/var/lib/flatcar-install" cp "${CLOUDINIT}" "${WORKDIR}/rootfs/var/lib/flatcar-install/user_data" fi if [[ -n "${COPY_NET}" ]]; then echo "Copying network units to root partition." # Copy the entire directory, do not overwrite anything that might exist there, keep permissions, and copy the resolve.conf link as a file. cp --recursive --no-clobber --preserve --dereference /run/systemd/network/* "${WORKDIR}/rootfs/etc/systemd/network" fi ) fi } function write_ignition() { if [[ -n "${IGNITION}" ]]; then ( # The OEM partition should be #6 but make no assumptions here! # Also don't mount by label directly in case other devices conflict. local OEM_DEV=$(blkid -l -t "LABEL=OEM" -o device "${DEVICE}"*) mkdir -p "${WORKDIR}/oemfs" mount "${OEM_DEV}" "${WORKDIR}/oemfs" || { btrfstune -f -u "${OEM_DEV}" ; mount "${OEM_DEV}" "${WORKDIR}/oemfs" ; } trap 'umount "${WORKDIR}/oemfs"' EXIT echo "Installing Ignition config ${IGNITION}..." cp "${IGNITION}" "${WORKDIR}/oemfs/config.ign" ) fi } function create_uefi() { ensure_tool "efibootmgr" local EFI_APP="bootx64.efi" if [[ "${BOARD}" = "arm64-usr" ]]; then EFI_APP="bootaa64.efi" fi efibootmgr -c -d "${DEVICE}" -l "\\efi\\boot\\${EFI_APP}" -L "Flatcar Container Linux ${CHANNEL_ID}" } WORKDIR=$(mktemp --tmpdir -d flatcar-install.XXXXXXXXXX) trap 'error_output ; is_modified && wipefs --all --backup "${DEVICE}" ; rm -rf "${WORKDIR}"' EXIT if [[ "${DOWNLOAD_ONLY}" = 'true' ]]; then download_from_url echo "Success! ${VERSION_SUMMARY} has been downloaded to the current directory" else if [ -n "${IMAGE_FILE}" ]; then install_from_file else install_from_url fi write_cloudinit write_ignition if [[ -n "${CREATE_UEFI}" ]]; then create_uefi fi echo "Success! ${VERSION_SUMMARY} is installed on ${DEVICE}" fi rm -rf "${WORKDIR}" trap - EXIT