diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-09-04 23:22:34 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-09-05 00:46:09 +0200 |
commit | 29804e6eb2a755c123f2a73fb843867846cb9111 (patch) | |
tree | d1732efe37fe7b6fdbec4e52b205276d8b98e5e9 | |
parent | 7c1d8146a770d6b37b35cefc0ad8662f4c07df62 (diff) | |
download | guix-29804e6eb2a755c123f2a73fb843867846cb9111.tar.gz guix-29804e6eb2a755c123f2a73fb843867846cb9111.zip |
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.
-rw-r--r-- | guix/build/linux-initrd.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm index 208ad711ef..b5404da7f0 100644 --- a/guix/build/linux-initrd.scm +++ b/guix/build/linux-initrd.scm @@ -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))))) |