mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Emit bootindex even for direct boot
Direct boot (using kernel, initrd, and command line) is used by virt-install/virt-manager for network install. While any bootindex has no direct effect since -kernel is always first, we need it as a hint for SeaBIOS to present disks in the same order as they will be presented during normal boot.
This commit is contained in:
parent
0ad35376d3
commit
24a001493a
@ -4334,8 +4334,7 @@ qemuBuildCommandLine(virConnectPtr conn,
|
||||
if (qemuCapsGet(qemuCaps, QEMU_CAPS_DRIVE)) {
|
||||
int bootCD = 0, bootFloppy = 0, bootDisk = 0;
|
||||
|
||||
if ((qemuCapsGet(qemuCaps, QEMU_CAPS_DRIVE_BOOT) || emitBootindex) &&
|
||||
!def->os.kernel) {
|
||||
if ((qemuCapsGet(qemuCaps, QEMU_CAPS_DRIVE_BOOT) || emitBootindex)) {
|
||||
/* bootDevs will get translated into either bootindex=N or boot=on
|
||||
* depending on what qemu supports */
|
||||
for (i = 0 ; i < def->os.nBootDevs ; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user