When a build host is under heavy load, the Alpine text can sometimes be entered before the boot has completed. So we increase the wait time to avoid this in the future. There is no real harm from increasing wait time, as there is no timeout on the login prompt
20 lines
739 B
HCL
20 lines
739 B
HCL
distro = "alpine"
|
|
version = "3.20"
|
|
iso = {
|
|
url = "https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-extended-3.20.7-x86_64.iso"
|
|
checksum = "92d8a906c6906692349b558de3f41d1a1d3ade85936a0ee6d90fd057249ecac8"
|
|
}
|
|
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 = "40s"
|
|
shutdown_command = "sudo poweroff"
|