[pve-devel] [PATCH v2 qemu-server 02/28] Use parse_drive for EFI disk

Fabian Ebner f.ebner at proxmox.com
Mon Feb 24 13:43:52 CET 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a4d2e4e..751a075 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3523,7 +3523,7 @@ sub config_to_command {
 	my $path;
 	my $format;
 	if (my $efidisk = $conf->{efidisk0}) {
-	    my $d = PVE::JSONSchema::parse_property_string($efidisk_fmt, $efidisk);
+	    my $d = parse_drive('efidisk0', $efidisk);
 	    my ($storeid, $volname) = PVE::Storage::parse_volume_id($d->{file}, 1);
 	    $format = $d->{format};
 	    if ($storeid) {
-- 
2.20.1




More information about the pve-devel mailing list