aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-02-01 02:22:23 +0100
committerLudovic Courtès <ludo@gnu.org>2014-02-01 02:22:23 +0100
commit1c2215108b4f0cd849da08cd8d2896680958d8c8 (patch)
tree4c032d29cd36d95ee3af7be72157003ac359210f /guix
parent53bd729e8cb834fd8d907c58dd54698f71298744 (diff)
downloadgnu-guix-1c2215108b4f0cd849da08cd8d2896680958d8c8.tar
gnu-guix-1c2215108b4f0cd849da08cd8d2896680958d8c8.tar.gz
gnu: linux-initrd: Build /dev/input devices.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/input devices.
Diffstat (limited to 'guix')
-rw-r--r--guix/build/linux-initrd.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index ac7806cc3b..5bf20fa6df 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -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))