[SLOF] [PATCH] boot: stop booting when we encounter HALT
Nikunj A Dadhania
nikunj at linux.vnet.ibm.com
Mon Oct 26 15:05:19 AEDT 2015
Alexey Kardashevskiy <aik at ozlabs.ru> writes:
> On 10/14/2015 10:25 PM, Nikunj A Dadhania wrote:
>> QEMU when started with "-boot strict=on", appends "HALT" at the end of
>> the bootlist. Handle this in the boot order.
> Without an additional comment, handling looks like ignoring which is ok but
> why exactly? We stop after the end of the bootlist anyway?
Without this patch SLOF tries to boot from device named "HALT" :-)
It fails and with error saying failed booting from device HALT, which is
>> 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
>> + 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
More information about the SLOF