diff --git a/modules/services/ttys/mingetty.nix b/modules/services/ttys/mingetty.nix index d6fffea299e..550d94c4cea 100644 --- a/modules/services/ttys/mingetty.nix +++ b/modules/services/ttys/mingetty.nix @@ -59,7 +59,9 @@ with pkgs.lib; jobs = listToAttrs (map (tty: nameValuePair tty { startOn = - if config.services.mingetty.waitOnMounts + # On tty1 we should always wait for mountall, since it may + # start an emergency-shell job. + if config.services.mingetty.waitOnMounts || tty == "tty1" then "stopped udevtrigger and filesystem" else "stopped udevtrigger"; # !!! should start as soon as the tty device is created