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.
37 lines
790 B
Bash
Executable File
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}"
|