azure-image: set font & splashImage to null to force text mode, so console for Gen 2 VM could work

This commit is contained in:
codgician 2024-11-28 01:05:58 +08:00
parent 6b9a77767a
commit 0a0f6543ad
No known key found for this signature in database

View file

@ -96,7 +96,9 @@ in
efiSupport = (cfg.vmGeneration == "v2");
device = if efiSupport then "nodev" else "/dev/sda";
efiInstallAsRemovable = efiSupport;
extraConfig = ''
font = null;
splashImage = null;
extraConfig = lib.mkIf (!efiSupport) ''
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_input --append serial
terminal_output --append serial