20 lines
738 B
HCL
20 lines
738 B
HCL
distro = "alpine"
|
|
version = "3.20"
|
|
iso = {
|
|
url = "http://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-standard-3.20.3-x86_64.iso"
|
|
checksum = "c66fc1e0470781f8ecbab8eb9cc8d906066171a5e0c6c1ab20aedc7061836d27"
|
|
}
|
|
boot_command = [
|
|
"root<enter><wait1>",
|
|
"echo 'iface eth0 inet dhcp' > /etc/network/interfaces<enter><wait>",
|
|
"ifup eth0<enter><wait8>",
|
|
"wget -O answers.cfg.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers.cfg.sh<enter>",
|
|
"<wait3>",
|
|
"wget -O in-chroot.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/in-chroot.sh<enter>",
|
|
"<wait3>",
|
|
"/bin/ash ./answers.cfg.sh 2>&1 | tee install.log<enter>",
|
|
]
|
|
http_directory = "distros/alpine/3.20/http/"
|
|
boot_wait = "20s"
|
|
shutdown_command = "sudo poweroff"
|