summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-01 23:51:12 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-01 23:51:12 +0200
commit9b4a163a8763df80c18a44c505771d17ae8a25a3 (patch)
treef8b8d16399bc5294db4b592a75b762a651a42965
parent9e69b09857e4a629cf3cac22369c3e704daf424b (diff)
downloadguix-9b4a163a8763df80c18a44c505771d17ae8a25a3.tar.gz
linux-initrd: Actually create /dev/console.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Add
  "dev/console".
-rw-r--r--guix/build/linux-initrd.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index 376242ce2b..d7de9c14ee 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -259,6 +259,12 @@ with the given MAJOR number, starting with MINOR."
   (mknod (scope "dev/input/mouse0") 'char-special #o640 (device-number 13 32))
   (mknod (scope "dev/input/event0") 'char-special #o640 (device-number 13 64))
 
+  ;; System console.  This node is magically created by the kernel on the
+  ;; initrd's root, so don't try to create it in that case.
+  (unless (string=? root "/")
+    (mknod (scope "dev/console") 'char-special #o600
+           (device-number 5 1)))
+
   ;; TTYs.
   (mknod (scope "dev/tty") 'char-special #o600
          (device-number 5 0))