Skip to content

Commit ae53cb2

Browse files
SuperSandro2000astro
authored andcommitted
optimization: don't create multiple serial consoles
1 parent 3b0f8ee commit ae53cb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nixos-modules/microvm/optimization.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ lib.mkIf (cfg.guest.enable && cfg.optimize.enable) {
3030
]);
3131
tpm2.enable = lib.mkDefault false;
3232
};
33-
swraid.enable = false;
33+
kernelParams = [
34+
# we only need one serial console
35+
"8250.nr_uarts=1"
36+
];
37+
swraid.enable = lib.mkDefault false;
3438
};
3539

3640
nixpkgs.overlays = [

0 commit comments

Comments
 (0)