From f2870ea7b5ffca2df16503efdfcbe6f7887fa67d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Mar 2012 14:42:52 +0000 Subject: [PATCH] * tty1 needs to be treated specially because of the emergency-shell job. svn path=/nixos/trunk/; revision=33018 --- modules/services/ttys/mingetty.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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