mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-20 11:40:09 +00:00
cfg2cmd: ovmf: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
89b0461af1
commit
818c3b8d91
@ -3056,14 +3056,12 @@ sub config_to_command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($ovmf_code, $ovmf_vars) = get_ovmf_files($arch);
|
|
||||||
if ($conf->{bios} && $conf->{bios} eq 'ovmf') {
|
if ($conf->{bios} && $conf->{bios} eq 'ovmf') {
|
||||||
die "uefi base image not found\n" if ! -f $ovmf_code;
|
my ($ovmf_code, $ovmf_vars) = get_ovmf_files($arch);
|
||||||
|
die "uefi base image '$ovmf_code' not found\n" if ! -f $ovmf_code;
|
||||||
|
|
||||||
my $path;
|
my ($path, $format);
|
||||||
my $format;
|
if (my $d = parse_drive('efidisk0', $conf->{efidisk0})) {
|
||||||
if (my $efidisk = $conf->{efidisk0}) {
|
|
||||||
my $d = parse_drive('efidisk0', $efidisk);
|
|
||||||
my ($storeid, $volname) = PVE::Storage::parse_volume_id($d->{file}, 1);
|
my ($storeid, $volname) = PVE::Storage::parse_volume_id($d->{file}, 1);
|
||||||
$format = $d->{format};
|
$format = $d->{format};
|
||||||
if ($storeid) {
|
if ($storeid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user