gnu: linux-initrd: Build /dev/input devices.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  dev/input devices.
master
Ludovic Courtès 2014-02-01 02:22:23 +01:00
parent 53bd729e8c
commit 1c2215108b
1 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,13 @@
(mknod (scope "dev/mem") 'char-special #o640 (device-number 1 1))
(mknod (scope "dev/kmem") 'char-special #o640 (device-number 1 2))
;; Inputs (used by Xorg.)
(unless (file-exists? (scope "dev/input"))
(mkdir (scope "dev/input")))
(mknod (scope "dev/input/mice") 'char-special #o640 (device-number 13 63))
(mknod (scope "dev/input/mouse0") 'char-special #o640 (device-number 13 32))
(mknod (scope "dev/input/event0") 'char-special #o640 (device-number 13 64))
;; TTYs.
(mknod (scope "dev/tty") 'char-special #o600
(device-number 5 0))