esxi: add warning for losing efi state
we cannot import the state of the efivars (e.g. boot order) so add a warning for that Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> [ TL: add new warning to return schema ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
85fbbb2f96
commit
0f940f10fc
@ -746,6 +746,7 @@ __PACKAGE__->register_method({
|
|||||||
description => 'What this warning is about.',
|
description => 'What this warning is about.',
|
||||||
enum => [
|
enum => [
|
||||||
'cdrom-image-ignored',
|
'cdrom-image-ignored',
|
||||||
|
'efi-state-lost',
|
||||||
'guest-is-running',
|
'guest-is-running',
|
||||||
'nvme-unsupported',
|
'nvme-unsupported',
|
||||||
'ovmf-with-lsi-unsupported',
|
'ovmf-with-lsi-unsupported',
|
||||||
|
|||||||
@ -955,6 +955,7 @@ sub get_create_args {
|
|||||||
if ($firmware eq 'efi') {
|
if ($firmware eq 'efi') {
|
||||||
$create_args->{bios} = 'ovmf';
|
$create_args->{bios} = 'ovmf';
|
||||||
$create_disks->{efidisk0} = 1;
|
$create_disks->{efidisk0} = 1;
|
||||||
|
$warn->('efi-state-lost', key => "bios", value => "ovmf");
|
||||||
} else {
|
} else {
|
||||||
$create_args->{bios} = 'seabios';
|
$create_args->{bios} = 'seabios';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user