mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-13 14:44:42 -05:00
qemu: command: Don't format -device isa-fdc,... twice with two floppy drives
Fix regression introduced in <42fd5a58adb>. With q35 machine type which requires the explicitly specified FDC we'd format twoisa-fdc controllers to the command line as the code was moved to a place where it's called per-disk. Move the call back after formatting all disks and reiterate the disks to find the floppy controllers. This also moves the '-global' directive which sets up the default ISA-FDC to the end after all the disks but since we are modifying the properties it is safe to do so. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -36,9 +36,9 @@ readonly=on \
|
||||
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,\
|
||||
bootindex=1 \
|
||||
-drive file=/dev/fd0,format=raw,if=none,id=drive-fdc0-0-0 \
|
||||
-drive file=/dev/fd1,format=raw,if=none,id=drive-fdc0-0-1 \
|
||||
-global isa-fdc.driveA=drive-fdc0-0-0 \
|
||||
-global isa-fdc.bootindexA=4 \
|
||||
-drive file=/dev/fd1,format=raw,if=none,id=drive-fdc0-0-1 \
|
||||
-global isa-fdc.driveB=drive-fdc0-0-1 \
|
||||
-netdev user,id=hostnet0 \
|
||||
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:11:22:33:44:11,bus=pci.0,\
|
||||
|
||||
Reference in New Issue
Block a user