diff options
Diffstat (limited to 'board-qemu/slof/qemu-bootlist.fs')
-rw-r--r-- | board-qemu/slof/qemu-bootlist.fs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/board-qemu/slof/qemu-bootlist.fs b/board-qemu/slof/qemu-bootlist.fs index 6b52b97..0a1aaf3 100644 --- a/board-qemu/slof/qemu-bootlist.fs +++ b/board-qemu/slof/qemu-bootlist.fs @@ -16,11 +16,15 @@ defer add-boot-device : qemu-read-bootlist ( -- ) 0 0 set-boot-device - \ check nvram - " boot-device" evaluate swap drop 0 <> IF EXIT THEN - - \ check qemu boot list - " qemu,boot-device" get-chosen not IF EXIT THEN + " qemu,boot-device" get-chosen not IF + \ No boot list set from qemu, so check nvram + " boot-device" evaluate swap drop 0= IF + \ Not set in nvram too, set default disk/cdrom alias + " disk" add-boot-device + " cdrom" add-boot-device + THEN + EXIT + THEN 0 ?DO dup i + c@ CASE |