mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 21:04:18 +00:00
cfg2cmd: ovmf drive: use volume format from storage layer
Avoid using the extension based qemu_img_format() helper. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
e4cbea4436
commit
d6e76d1b60
@ -3539,10 +3539,7 @@ my sub print_ovmf_drive_commandlines {
|
|||||||
my ($path, $format) = $d->@{'file', 'format'};
|
my ($path, $format) = $d->@{'file', 'format'};
|
||||||
if ($storeid) {
|
if ($storeid) {
|
||||||
$path = PVE::Storage::path($storecfg, $d->{file});
|
$path = PVE::Storage::path($storecfg, $d->{file});
|
||||||
if (!defined($format)) {
|
$format //= checked_volume_format($storecfg, $d->{file});
|
||||||
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
|
||||||
$format = qemu_img_format($scfg, $volname);
|
|
||||||
}
|
|
||||||
} elsif (!defined($format)) {
|
} elsif (!defined($format)) {
|
||||||
die "efidisk format must be specified\n";
|
die "efidisk format must be specified\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user