~ruther/guix-local

29804e6eb2a755c123f2a73fb843867846cb9111 — Ludovic Courtès 12 years ago 7c1d814
gnu: linux-initrd: Fix creation of /dev/tty nodes.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  /dev/tty.  Change from 'block-special' to 'char-special' for /dev/tty*
  nodes.
1 files changed, 3 insertions(+), 1 deletions(-)

M guix/build/linux-initrd.scm
M guix/build/linux-initrd.scm => guix/build/linux-initrd.scm +3 -1
@@ 80,10 80,12 @@
  (mknod (scope "dev/vda2") 'block-special #o644 (device-number 8 2))

  ;; TTYs.
  (mknod (scope "dev/tty") 'char-special #o600
         (device-number 5 0))
  (let loop ((n 0))
    (and (< n 50)
         (let ((name (format #f "dev/tty~a" n)))
           (mknod (scope name) 'block-special #o644
           (mknod (scope name) 'char-special #o600
                  (device-number 4 n))
           (loop (+ 1 n)))))