forked from DGNum/liminix
30 lines
No EOL
550 B
Text
30 lines
No EOL
550 B
Text
set timeout 30
|
|
|
|
spawn socat unix-connect:vm/console -
|
|
expect {
|
|
"stop autoboot" { send "\r" }
|
|
"=>" { send "\r" }
|
|
}
|
|
set fh [open "result/boot.scr"]
|
|
while {[gets $fh line] >= 0} {
|
|
expect "=>"
|
|
send "$line\r"
|
|
}
|
|
|
|
close $fh
|
|
|
|
expect {
|
|
"s6-linux-init" { }
|
|
"Reserved memory: unsupported node format, ignoring" { exit 1 }
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
expect {
|
|
"#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && hostname \r" }
|
|
timeout { exit 1 }
|
|
}
|
|
|
|
expect {
|
|
"tftpboot-test" { exit 0 }
|
|
timeout { exit 1 }
|
|
} |