From 7f17ff78419b6088cbc8cec6e5f567a317fba809 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Wed, 14 May 2014 16:38:47 +0200
Subject: [PATCH] linux-initrd: Make /dev/ttyS0, for debugging.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  /dev/ttyS0.
---
 guix/build/linux-initrd.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index b488668ee2d..a89ff86bbb2 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -124,6 +124,10 @@ (define (scope dir)
                   (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))
-- 
GitLab