aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-14 16:38:47 +0200
committerLudovic Courtès <ludo@gnu.org>2014-05-14 19:07:04 +0200
commit7f17ff78419b6088cbc8cec6e5f567a317fba809 (patch)
treea800f64a8f005d455f8b6d980511269b159daa27
parent7d57cfd3b6625d7ab7f796b90b9606c28ec3aeef (diff)
downloadguix-7f17ff78419b6088cbc8cec6e5f567a317fba809.tar
guix-7f17ff78419b6088cbc8cec6e5f567a317fba809.tar.gz
linux-initrd: Make /dev/ttyS0, for debugging.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/ttyS0.
-rw-r--r--guix/build/linux-initrd.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index b488668ee2..a89ff86bbb 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -124,6 +124,10 @@
(device-number 4 n))
(loop (+ 1 n)))))
+ ;; Serial line.
+ (mknod (scope "dev/ttyS0") 'char-special #o660
+ (device-number 4 64))
+
;; Pseudo ttys.
(mknod (scope "dev/ptmx") 'char-special #o666
(device-number 5 2))