]> git.proxmox.com Git - qemu-server.git/commitdiff
skip efidisk0 in hotplug
authorOguz Bektas <o.bektas@proxmox.com>
Tue, 26 Nov 2019 16:07:49 +0000 (17:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Nov 2019 16:11:49 +0000 (17:11 +0100)
while it's a disk from our storage POV, in QEMU it's a pflash, and
those cannot be hot-plugged

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 5f248a303a0483d94e88d0b0a9b1cff8b6da758e..75e4f67c836ba74fddade497870f89adc4708649 100644 (file)
@@ -4902,6 +4902,7 @@ sub vmconfig_hotplug_pending {
                vmconfig_update_net($storecfg, $conf, $hotplug_features->{network},
                                    $vmid, $opt, $value, $arch, $machine_type);
            } elsif (is_valid_drivename($opt)) {
+               die "skip\n" if $opt eq 'efidisk0';
                # some changes can be done without hotplug
                my $drive = parse_drive($opt, $value);
                if (drive_is_cloudinit($drive)) {