[SLOF] [PATCH] Fix ugly boot menu if devices have been specified with bootindex

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Wed Apr 5 18:12:39 AEST 2017


Thomas Huth <thuth at redhat.com> writes:

> If the user has started with some devices that have the bootindex
> parameter set, these devices show up in a very ugly way in the boot
> menu of SLOF. For example, if you start QEMU with:
>
>  qemu-system-ppc64 ... -boot menu=on -device spapr-vscsi,id=scsi0 \
>   -drive file=distro.iso,if=none,media=cdrom,readonly=on,id=img0 \
>   -device scsi-cd,drive=img0,bootindex=1

>From distant memory, I understand that "-boot" and bootindex are
mutually exclusive. bootindex was introduced to qemu to get rid of
restrictive -boot option. Just checked the qemu documentation as well -
docs/bootindex.txt :

== Mixing bootindex and boot order parameters ==

Note that it does not make sense to use the bootindex property together
with the "-boot order=..." (or "-boot once=...") parameter. The guest
firmware implementations normally either support the one or the other,
but not both parameters at the same time. Mixing them will result in
undefined behavior, and thus the guest firmware will likely not boot
from the expected devices.

Regards
Nikunj



More information about the SLOF mailing list