Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + getopts V:B:C:d:o:c:i:t:b:k:f:nyvh OPTION
- + [[ -z /dev/sda ]]
- ++ lsblk -n -d -o TYPE /dev/sda
- + [[ disk =~ ^(disk|loop|lvm)$ ]]
- + [[ ! -w /dev/sda ]]
- + [[ -n '' ]]
- + [[ -n /root/ignition.json ]]
- + [[ ! -f /root/ignition.json ]]
- + [[ -n '' ]]
- + _disk_status=
- ++ mktemp --tmpdir -d coreos-install.XXXXXXXXXX
- + WORKDIR=/tmp/coreos-install.OKcgfnsWbn
- + trap 'error_output ; is_modified && wipefs --all --backup "${DEVICE}" ; rm -rf "${WORKDIR}"' EXIT
- + '[' -n '' ']'
- + install_from_url
- + type -P wget
- + type -P gpg
- + local IMAGE_NAME=coreos_production_image.bin.bz2
- + [[ -n '' ]]
- + [[ -n 1 ]]
- + [[ -z '' ]]
- + VERSION_ID=current
- + [[ current =~ ^(alpha|beta|stable)$ ]]
- + [[ -z '' ]]
- + BASE_URL=https://stable.release.core-os.net/amd64-usr
- + [[ current == \c\u\r\r\e\n\t ]]
- + local VERSIONTXT_URL=https://stable.release.core-os.net/amd64-usr/current/version.txt
- ++ wget -qO- https://stable.release.core-os.net/amd64-usr/current/version.txt
- ++ sed -n 's/^COREOS_VERSION=//p'
- + VERSION_ID=2247.7.0
- + [[ -z 2247.7.0 ]]
- + echo 'Current version of CoreOS Container Linux stable is 2247.7.0'
- Current version of CoreOS Container Linux stable is 2247.7.0
- + local IMAGE_URL=https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2
- + local SIG_NAME=coreos_production_image.bin.bz2.sig
- + local SIG_URL=https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2.sig
- + wget --spider --quiet https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2
- + wget --spider --quiet https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2.sig
- + export GNUPGHOME=/tmp/coreos-install.OKcgfnsWbn/gnupg
- + GNUPGHOME=/tmp/coreos-install.OKcgfnsWbn/gnupg
- + mkdir -p /tmp/coreos-install.OKcgfnsWbn/gnupg
- + '[' -n '' ']'
- + gpg --batch --quiet --import
- + echo 'Downloading the signature for https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2...'
- Downloading the signature for https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2...
- + wget --no-verbose -O /tmp/coreos-install.OKcgfnsWbn/coreos_production_image.bin.bz2.sig https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2.sig
- 2019-11-29 05:13:59 URL:https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2.sig [566/566] -> "/tmp/coreos-install.OKcgfnsWbn/coreos_production_image.bin.bz2.sig" [1]
- + echo 'Downloading, writing and verifying coreos_production_image.bin.bz2...'
- Downloading, writing and verifying coreos_production_image.bin.bz2...
- ++ write_to_disk
- ++ mkfifo -m 0600 /tmp/coreos-install.OKcgfnsWbn/disk_modified
- + wget --no-verbose -O - https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2
- + tee /dev/fd/62
- + gpg --batch --trusted-key 50E0885593D2DCB4 --verify /tmp/coreos-install.OKcgfnsWbn/coreos_production_image.bin.bz2.sig -
- ++ bzip2 -cd
- ++ trap '(exec 2>/dev/null ; echo done > "${WORKDIR}/disk_modified") &' RETURN
- +++ blockdev --getsz /dev/sda
- ++ dd conv=nocreat count=1024 if=/dev/zero of=/dev/sda seek=39063649280 status=none
- ++ dd bs=1M conv=nocreat of=/dev/sda status=none
- 2019-11-29 05:15:05 URL:https://stable.release.core-os.net/amd64-usr/2247.7.0/coreos_production_image.bin.bz2 [481587918/481587918] -> "-" [1]
- gpg: Signature made Tue Nov 19 23:15:54 2019 UTC
- gpg: using RSA key FD986FB096482F906F55B2EA01C9CAE767B3CA0E
- gpg: key 50E0885593D2DCB4 marked as ultimately trusted
- gpg: checking the trustdb
- gpg: marginals needed: 3 completes needed: 1 trust model: pgp
- gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
- gpg: Good signature from "CoreOS Buildbot (Offical Builds) <buildbot@coreos.com>" [ultimate]
- + VERSION_SUMMARY+=' stable 2247.7.0'
- + wait_for_disk
- + '[' -n '' ']'
- + read -rt 7200 _disk_status
- ++ udevadm settle
- ++ local try
- ++ for try in 0 1 2 4
- ++ sleep 0
- ++ blockdev --rereadpt /dev/sda
- blockdev: ioctl error on BLKRRPART: Device or resource busy
- ++ echo 'Failed to reread partitions on /dev/sda'
- Failed to reread partitions on /dev/sda
- ++ for try in 0 1 2 4
- ++ sleep 1
- ++ blockdev --rereadpt /dev/sda
- ++ unset try
- ++ break
- ++ '[' -z '' ']'
- ++ udevadm settle
- +++ exec
- + write_cloudinit
- + [[ -n '' ]]
- + write_ignition
- + [[ -n /root/ignition.json ]]
- ++ blkid -t LABEL=OEM -o device /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda6 /dev/sda7 /dev/sda9
- + local OEM_DEV=/dev/sda6
- + mkdir -p /tmp/coreos-install.OKcgfnsWbn/oemfs
- + mount /dev/sda6 /tmp/coreos-install.OKcgfnsWbn/oemfs
- + trap 'umount "${WORKDIR}/oemfs"' RETURN
- + echo 'Installing Ignition config /root/ignition.json...'
- Installing Ignition config /root/ignition.json...
- + cp /root/ignition.json /tmp/coreos-install.OKcgfnsWbn/oemfs/config.ign
- ++ umount /tmp/coreos-install.OKcgfnsWbn/oemfs
- + rm -rf /tmp/coreos-install.OKcgfnsWbn
- + trap - EXIT
- + echo 'Success! CoreOS Container Linux stable 2247.7.0 is installed on /dev/sda'
- Success! CoreOS Container Linux stable 2247.7.0 is installed on /dev/sda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement