Files
vms/distros/opensuse/tumbleweed/amd64.pkrvars.hcl.sh
T
Greg Hellings 4f4fac29c7 Add serial output to QEmu
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.
2024-06-29 22:03:55 -05:00

37 lines
790 B
Bash
Executable File

#!env bash
name="${0%.sh}"
base="https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
# Working directory
tmp="$(mktemp -d)"
checksums="${tmp}/checksums"
# Read the SHA256 sum value
sums="${base}.sha256"
until curl -f -L -o "${checksums}" "${sums}"; do
sleep 1
done
sha="$(cut -d' ' -f 1 "${checksums}")"
cat << EOF > "${name}"
distro = "opensuse"
version = "tumbleweed"
iso = {
url = "${base}"
checksum = "${sha}"
}
boot_command = [
"e<wait>",
"<down><down><down><down><end><wait>",
" autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/autoinst.xml textmode=1<wait>",
" console=ttyS0",
"<leftCtrlOn>x<leftCtrlOff>"
]
http_directory = "distros/opensuse/tumbleweed/http/"
vbox_os_type = "OpenSUSE_Tumbleweed_64"
EOF
rm -r "${tmp}"