]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
api: update: pass correct config when creating disks
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 9 Mar 2022 10:09:05 +0000 (11:09 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 11 Mar 2022 09:45:59 +0000 (10:45 +0100)
commit367e6bf4b7c5c2dbcf65dbaae51cc2fac8aec8ef
tree13525c80224ea3fbb70828f5879bec32228ebe4c
parentfe19840a5628538947790518a6082381038f8518
api: update: pass correct config when creating disks

While the new options should be written to the pending config, the
decisions (currently only one) in create_disks needs to be made for
the current config.

Seems to fix EFI disk creation, but actually, it's only
future-proofing, because, currently, the same OVMF_VARS file is
used independently of $smm.

The correct config is also needed to determine the correct size for
the EFI disk for the upcoming import-from feature.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm