]> git.proxmox.com Git - qemu-server.git/commit
efidisk: do not hard code efivar base image size
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Sep 2017 06:40:27 +0000 (08:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Sep 2017 08:04:46 +0000 (10:04 +0200)
commita1d8c038c58137050c29b697d6d80de902a59892
tree5dbb4f0b59921e329bc41c7c1d7e229e61d530aa
parentc2327320a8f1cc4f03411f1ddfc911a9f9ac1f62
efidisk: do not hard code efivar base image size

The size of this image is not fixed, it increased to 528k in more
recent build of OVMF and could increase further (not likely, but
possible).

Instead of changing the hardcoded value move to a more generic
approach and read the size from the base image at creation time.

Use the new convert_size method and generalise the assignment of
size and volid between the efidisk and the normal case, as a part of
this change.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm