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.
This commit is contained in:
Ludovic Courtès 2013-09-04 23:22:34 +02:00
parent 7c1d8146a7
commit 29804e6eb2

@ -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)))))