cfg2cmd: disable SMM when display=none and SeaBIOS is both used

issue reported in community forum [0][1], like "serial[n]" display we
also need to set this option for "none", otherwise we get a boot
loop.

[0]: https://forum.proxmox.com/threads/99508
[1]: https://forum.proxmox.com/threads/97310/post-427129

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Oguz Bektas 2021-11-11 13:05:58 +01:00 committed by Thomas Lamprecht
parent 2db2ecc69a
commit bec8742495

View File

@ -3410,7 +3410,7 @@ my sub should_disable_smm {
my ($conf, $vga) = @_; my ($conf, $vga) = @_;
return (!defined($conf->{bios}) || $conf->{bios} eq 'seabios') && return (!defined($conf->{bios}) || $conf->{bios} eq 'seabios') &&
$vga->{type} && $vga->{type} =~ m/^serial\d+$/; $vga->{type} && $vga->{type} =~ m/^(serial\d+|none)$/;
} }
sub config_to_command { sub config_to_command {