2024-04-16 14:21:00 -05:00
|
|
|
#!env bash
|
2024-01-09 16:47:46 -06:00
|
|
|
|
2024-07-23 17:52:53 -05:00
|
|
|
set -x
|
|
|
|
|
|
2024-01-09 16:47:46 -06:00
|
|
|
name="${0%.sh}"
|
|
|
|
|
|
2025-07-13 23:59:10 -05:00
|
|
|
base="https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
|
2024-01-09 16:47:46 -06:00
|
|
|
|
|
|
|
|
# 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>",
|
|
|
|
|
"<leftCtrlOn>x<leftCtrlOff>"
|
|
|
|
|
]
|
|
|
|
|
http_directory = "distros/opensuse/tumbleweed/http/"
|
2024-01-09 22:31:00 -06:00
|
|
|
vbox_os_type = "OpenSUSE_Tumbleweed_64"
|
2024-01-09 16:47:46 -06:00
|
|
|
EOF
|
|
|
|
|
|
2024-04-16 14:21:00 -05:00
|
|
|
rm -r "${tmp}"
|