mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 04:51:50 +00:00
add some comments for legacy 2MB OVMF image builds
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c2f4482053
commit
c351659d87
@ -86,6 +86,9 @@ my $OVMF = {
|
|||||||
"$EDK2_FW_BASE/OVMF_CODE_4M.secboot.fd",
|
"$EDK2_FW_BASE/OVMF_CODE_4M.secboot.fd",
|
||||||
"$EDK2_FW_BASE/OVMF_VARS_4M.ms.fd",
|
"$EDK2_FW_BASE/OVMF_VARS_4M.ms.fd",
|
||||||
],
|
],
|
||||||
|
# FIXME: These are legacy 2MB-sized images that modern OVMF doesn't supports to build
|
||||||
|
# anymore. how can we deperacate this sanely without breaking existing instances, or using
|
||||||
|
# older backups and snapshot?
|
||||||
default => [
|
default => [
|
||||||
"$EDK2_FW_BASE/OVMF_CODE.fd",
|
"$EDK2_FW_BASE/OVMF_CODE.fd",
|
||||||
"$EDK2_FW_BASE/OVMF_VARS.fd",
|
"$EDK2_FW_BASE/OVMF_VARS.fd",
|
||||||
@ -3343,9 +3346,13 @@ sub get_ovmf_files($$$) {
|
|||||||
or die "no OVMF images known for architecture '$arch'\n";
|
or die "no OVMF images known for architecture '$arch'\n";
|
||||||
|
|
||||||
my $type = 'default';
|
my $type = 'default';
|
||||||
if ($arch ne "aarch64" && defined($efidisk->{efitype}) && $efidisk->{efitype} eq '4m') {
|
if ($arch eq 'x86_64') {
|
||||||
$type = $smm ? "4m" : "4m-no-smm";
|
if (defined($efidisk->{efitype}) && $efidisk->{efitype} eq '4m') {
|
||||||
$type .= '-ms' if $efidisk->{'pre-enrolled-keys'};
|
$type = $smm ? "4m" : "4m-no-smm";
|
||||||
|
$type .= '-ms' if $efidisk->{'pre-enrolled-keys'};
|
||||||
|
} else {
|
||||||
|
# TODO: log_warn about use of legacy images for x86_64 with Promxox VE 9
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($ovmf_code, $ovmf_vars) = $types->{$type}->@*;
|
my ($ovmf_code, $ovmf_vars) = $types->{$type}->@*;
|
||||||
|
Loading…
Reference in New Issue
Block a user