From 6acef6811fffe20fb65b5e97b37c0feb0ab13c9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Tue, 27 Jan 2015 09:03:02 +0100
Subject: [PATCH] services: mingetty: Wait for udev.

* gnu/services/base.scm (mingetty-service): Add 'udev' to
  'requirement'.
---
 gnu/services/base.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 17dd0fb5994..32eb9035d42 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -366,8 +366,9 @@ (define* (mingetty-service tty
       (provision (list (symbol-append 'term- (string->symbol tty))))
 
       ;; Since the login prompt shows the host name, wait for the 'host-name'
-      ;; service to be done.
-      (requirement '(user-processes host-name))
+      ;; service to be done.  Also wait for udev essentially so that the tty
+      ;; text is not lost in the middle of kernel messages (XXX).
+      (requirement '(user-processes host-name udev))
 
       (start  #~(make-forkexec-constructor
                  (list (string-append #$mingetty "/sbin/mingetty")
-- 
GitLab