Browse Source

Add newline after boot for Debian preseed based

Fix tests on FreeBSD.
master
Teran McKinney 11 months ago
parent
commit
3d027d3871
  1. 3
      debian-preseed.go
  2. 2
      test.sh

3
debian-preseed.go

@ -81,7 +81,8 @@ set mirror {{.MIRROR}}
kernel ${mirror}/linux console=ttyS0,115200n8 net.ifnames=0 netcfg/choose_interface=eth0 initrd=initrd.gz auto=true priority=critical hostname={{.HOSTNAME}} auto url={{.PRESEED}} preseed-md5={{.PRESEED_CHECKSUM}}
initrd ${mirror}/initrd.gz
boot`
boot
`
func debianPreseed(sshKey, burnpaste_endpoint, hostname, mirror string) (response IPXE, err error) {
// burnpaste_endpoint is a running burnpaste instance to store our preseed data.

2
test.sh

@ -21,7 +21,7 @@ cleanup() {
kill "$PID"
}
trap fail $(seq 1 64)
trap fail $(seq 1 15)
fail() {
echo "FAIL: $1"

Loading…
Cancel
Save