2023-12-19 13:12:12 +01:00
|
|
|
set timeout 30
|
2023-12-18 23:42:29 +01:00
|
|
|
|
|
|
|
spawn socat unix-connect:vm/console -
|
2023-12-21 11:47:08 +01:00
|
|
|
expect {
|
|
|
|
"stop autoboot" { send "\r" }
|
|
|
|
"=>" { send "\r" }
|
|
|
|
}
|
2023-12-18 23:42:29 +01:00
|
|
|
set fh [open "result/boot.scr"]
|
|
|
|
while {[gets $fh line] >= 0} {
|
|
|
|
expect "=>"
|
|
|
|
send "$line\r"
|
|
|
|
}
|
|
|
|
|
|
|
|
close $fh
|
|
|
|
|
|
|
|
expect {
|
2023-12-21 23:21:20 +01:00
|
|
|
"s6-linux-init" { }
|
2023-12-21 22:13:16 +01:00
|
|
|
"Reserved memory: unsupported node format, ignoring" { exit 1 }
|
2023-12-18 23:42:29 +01:00
|
|
|
timeout { exit 1 }
|
|
|
|
}
|
|
|
|
|
2023-12-21 23:21:20 +01:00
|
|
|
expect {
|
2024-01-03 20:40:00 +01:00
|
|
|
"#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && uname \r" }
|
2023-12-21 23:21:20 +01:00
|
|
|
timeout { exit 1 }
|
|
|
|
}
|
2023-12-18 23:42:29 +01:00
|
|
|
|
2023-12-21 23:21:20 +01:00
|
|
|
expect {
|
2024-01-03 20:40:00 +01:00
|
|
|
"Linux" { exit 0 }
|
2023-12-21 23:21:20 +01:00
|
|
|
timeout { exit 1 }
|
|
|
|
}
|