3 set qemu
[lindex $argv
0]
4 set kernel
[lindex $argv
1]
5 set initrd
[lindex $argv
2]
6 set append
[lindex $argv
3]
7 set argv
[lreplace $argv
0 3]
9 # Wait enough
(forever
) until a long
-time boot
15 spawn $qemu
-kernel $kernel
-initrd $initrd
-nographic
-append
"$append" {*}$argv
19 "T2 SDE installer first stage*"
24 "* hit enter otherwise. (default:*"
34 send
"mount \$ROCK_INSTALL_SOURCE_DEV /media\n"
40 send
"kernel=$kernel initrd=$initrd\n"
41 send
"kexec -l /media/boot/\${kernel##*/} --initrd=/media/boot/\${initrd##*/} --command-line=\$(< /proc/cmdline)\n"
42 send
"\[ \$? != 0 \] && echo FA''IL\n"
51 "Nothing has been loaded" {exit 1}
52 "T2 SDE installer first stage*"
60 "* hit enter otherwise. (default:*"
70 send
"echo o > /proc/sysrq-trigger\n"