summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-02-01 01:07:14 +0100
committerLudovic Courtès <ludo@gnu.org>2014-02-01 01:07:14 +0100
commitc04c6ff64c1dd3f9cbd1d32763d46b480e56eb59 (patch)
tree555d694a8d78f95fe29d29fa98afaa42b082d1f6
parente420308f292cc55bbc21d0907a3a02779b4527e1 (diff)
downloadguix-c04c6ff64c1dd3f9cbd1d32763d46b480e56eb59.tar.gz
gnu: linux-initrd: Make /dev/{mem,kmem}.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  dev/{mem,kmem}.
-rw-r--r--guix/build/linux-initrd.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm
index d317f850f2..ac7806cc3b 100644
--- a/guix/build/linux-initrd.scm
+++ b/guix/build/linux-initrd.scm
@@ -93,6 +93,10 @@
   (mknod (scope "dev/vda1") 'block-special #o644 (device-number 252 1))
   (mknod (scope "dev/vda2") 'block-special #o644 (device-number 252 2))
 
+  ;; Memory (used by Xorg's VESA driver.)
+  (mknod (scope "dev/mem") 'char-special #o640 (device-number 1 1))
+  (mknod (scope "dev/kmem") 'char-special #o640 (device-number 1 2))
+
   ;; TTYs.
   (mknod (scope "dev/tty") 'char-special #o600
          (device-number 5 0))