From 6085b298ae53f6d4f2fce46d7ef4d5a772512c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 29 Jan 2009 19:17:55 +0000 Subject: [PATCH] Mount `/dev/shm' (shared memory support). svn path=/nixos/trunk/; revision=13908 --- boot/boot-stage-2-init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index f5fd818d3c7e..3c69265b51d8 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -69,6 +69,8 @@ mkdir -m 0755 -p /sys mount -t sysfs none /sys mkdir -m 0755 -p /dev mount -t tmpfs -o "mode=0755" none /dev +mkdir -m 0777 /dev/shm +mount -t tmpfs -o "rw,nosuid,nodev" tmpfs /dev/shm mkdir -m 0755 -p /dev/pts mount -t devpts none /dev/pts [ -e /proc/bus/usb ] && mount -t usbfs none /proc/bus/usb # uml doesn't have usb by default