Add OpenSuSE Tumbleweed
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
name="${0%.sh}"
|
||||
|
||||
base="https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-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>",
|
||||
"<leftCtrlOn>x<leftCtrlOff>"
|
||||
]
|
||||
http_directory = "distros/opensuse/tumbleweed/http/"
|
||||
EOF
|
||||
|
||||
rm -r "${tmp}"
|
||||
Reference in New Issue
Block a user