Hopefully this will give a little more information on what is happening in the builds on QEmu servers. Tell builds to output to ttyS0 and then capture that and output to the console.
35 lines
766 B
Bash
Executable File
35 lines
766 B
Bash
Executable File
#!env bash
|
|
|
|
set -ex
|
|
|
|
# Name of the file to write out
|
|
name="${0%.sh}"
|
|
|
|
baseurl="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso"
|
|
checksums="$(mktemp)"
|
|
until curl -f -L "${baseurl}.SHA256SUM" > "${checksums}"; do
|
|
sleep 1
|
|
done
|
|
sha="$(awk '/SHA256/ {print $4}' "${checksums}")"
|
|
rm "${checksums}"
|
|
|
|
cat << HERPDERP > "${name}"
|
|
distro = "centos-stream"
|
|
version = "9"
|
|
iso = {
|
|
url = "${baseurl}"
|
|
checksum = "${sha}"
|
|
}
|
|
boot_command = [
|
|
"<up>e<wait>",
|
|
"<down><down><end><wait>",
|
|
" inst.text inst.ks=cdrom:/ks.cfg",
|
|
" inst.notmux console=ttyS0",
|
|
"<leftCtrlOn>x<leftCtrlOff>"
|
|
]
|
|
cd_files = [ "distros/centos-stream/9/disc/*" ]
|
|
vbox_os_type = "RedHat9_64"
|
|
HERPDERP
|
|
|
|
rm -f cache/CentOS-Stream-9-latest-x86_64-boot.iso
|