[SLOF] [PATCH] boot: stop booting when we encounter HALT

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Wed Oct 14 22:25:00 AEDT 2015


QEMU when started with "-boot strict=on", appends "HALT" at the end of
the bootlist. Handle this in the boot order.

Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
---
 slof/fs/boot.fs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/slof/fs/boot.fs b/slof/fs/boot.fs
index a0fe29a..e0b6281 100644
--- a/slof/fs/boot.fs
+++ b/slof/fs/boot.fs
@@ -181,6 +181,7 @@ defer go ( -- )
       \ with watchdog timeout.
       4ec set-watchdog
    THEN
+   2dup " HALT" str= IF 2drop 0 EXIT THEN
    my-self >r current-node @ >r         \ Save my-self
    ." Trying to load: " $bootargs type ."  from: " 2dup type ."  ... "
    2dup open-dev dup IF
-- 
2.4.3



More information about the SLOF mailing list