diff options
author | Jacob Moody <moody@posixcafe.org> | 2022-06-14 08:16:57 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2022-06-14 08:16:57 +0000 |
commit | be1789d78bcf1be0cc48cd036942969824dacfa5 (patch) | |
tree | d8883c84957d124c886d9a68030893af03491d15 /sys/src/9/boot | |
parent | 28709be9a68beaff12f7227f49fae1fc49be0660 (diff) |
kernel: bootrc: add bootloop=
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-x | sys/src/9/boot/bootrc | 5 | ||||
-rwxr-xr-x | sys/src/9/boot/reboot.rc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index c0823e6f4..49a936381 100755 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -68,6 +68,11 @@ mt=() fn main{ mp=() while(~ $#mp 0){ + if(! ~ $#bootloop 0){ + nobootprompt=$bootloop + # 'flatten' for the next boot + echo -n $bootloop > '#ec/bootloop' + } if(~ $#nobootprompt 0){ echo showlocaldevs diff --git a/sys/src/9/boot/reboot.rc b/sys/src/9/boot/reboot.rc index 536ac2009..e2521b768 100755 --- a/sys/src/9/boot/reboot.rc +++ b/sys/src/9/boot/reboot.rc @@ -32,6 +32,7 @@ fn connectreboot { # set new kernel parameters echo -n $bootargs > '#ec/bootargs' + rm -f '#ec/bootloop' # remove part of our temporary root /mnt/broot/$cputype/bin/unmount /$cputype/bin /bin |