From a0821fbd497f761da8dd321e6dad440d41b783a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Nov 2006 17:32:09 +0000 Subject: [PATCH] * /dev should always be a ramdisk. svn path=/nixu/trunk/; revision=7095 --- test/boot-stage-2-init.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/boot-stage-2-init.sh b/test/boot-stage-2-init.sh index bda2bfdb64de..a93d22d24700 100644 --- a/test/boot-stage-2-init.sh +++ b/test/boot-stage-2-init.sh @@ -30,8 +30,7 @@ fi needWritableDir() { if test -n "@readOnlyRoot@"; then - mount -t tmpfs none $1 $3 - chmod $2 $1 + mount -t tmpfs -o "mode=$2" none $1 $3 else mkdir -m $2 -p $1 fi @@ -43,7 +42,7 @@ test -e /etc/fstab || touch /etc/fstab # idem mount -t proc none /proc mount -t sysfs none /sys -needWritableDir /dev 0755 +mount -t tmpfs -o "mode=0755" none /dev needWritableDir /tmp 01777 needWritableDir /var 0755 needWritableDir /nix/var 0755