From b5ef96b5ea922469cdafc575774f2838ba614d79 Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Thu, 28 Nov 2024 01:05:58 +0800 Subject: [PATCH] azure-image: set font & splashImage to null to force text mode, so console for Gen 2 VM could work --- nixos/modules/virtualisation/azure-image.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 82535e3d55761..3327faea69b49 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -91,7 +91,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