qemu-server/PVE/QemuServer
Dominik Csapak 30664f14ff fix bootdisk_size for new bootorder config scheme
Previously, we ever only had a single boot *disk*, while possibly
having multiple cdroms/nics in the boot order

e.g. the config:

 boot: dnc
 bootdisk: scsi0
 ide0: media=cdrom,none
 scsi0: xxx
 net0: ...

would return the size of scsi0 even though it would first boot
from cdrom/network.

When editing the bootorder with such a legacy config, we
remove the 'bootdisk' property and replace the legacy notation
with an explicit order, but we only search the first disk
for the size now.

Restore that behaviour by iterating over all disks in the boot
order property string until we get one that is not a cdrom
and has a size.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-04-29 16:15:33 +02:00
..
Agent.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
CGroup.pm add PVE::QemuServer::Cgroup 2020-11-24 12:00:33 +01:00
Cloudinit.pm fix #2670: cloudinit enable SLAAC 2021-03-30 18:25:06 +02:00
CPUConfig.pm anchor CPU flag regex to avoid arbitrary flag suffixes 2021-01-26 19:27:05 +01:00
Drive.pm fix bootdisk_size for new bootorder config scheme 2021-04-29 16:15:33 +02:00
Helpers.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
ImportDisk.pm qm importdisk: tell user to what VM disk we actually imported 2019-10-29 19:11:21 +01:00
Machine.pm cfg2cmd: fix +pveN machine types with pxe 2021-04-18 17:58:56 +02:00
Makefile add PVE::QemuServer::Cgroup 2020-11-24 12:00:33 +01:00
Memory.pm tree wide cleanups 2020-10-16 18:03:32 +02:00
Monitor.pm mon_cmd: add explicit return 2019-11-30 17:24:55 +01:00
OVF.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
PCI.pm PCI: use warnings/strict and fix setting $vga from config2command 2020-10-16 18:03:32 +02:00
USB.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00