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.',
|
||||
enum => [
|
||||
'cdrom-image-ignored',
|
||||
'efi-state-lost',
|
||||
'guest-is-running',
|
||||
'nvme-unsupported',
|
||||
'ovmf-with-lsi-unsupported',
|
||||
|
||||
@ -955,6 +955,7 @@ sub get_create_args {
|
||||
if ($firmware eq 'efi') {
|
||||
$create_args->{bios} = 'ovmf';
|
||||
$create_disks->{efidisk0} = 1;
|
||||
$warn->('efi-state-lost', key => "bios", value => "ovmf");
|
||||
} else {
|
||||
$create_args->{bios} = 'seabios';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user