aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-05-18 23:24:38 +0200
committerTom Gundersen <teg@jklm.no>2011-05-19 14:33:35 +0200
commitb6e17433c8838acdc48ccfe726325118792a171e (patch)
tree80f1950135307d5200fcb555365c5ff0addcb940 /rc.sysinit
parentaacbe897cc822d1daaa44cb754d56666e4f07e84 (diff)
downloadinitscripts-b6e17433c8838acdc48ccfe726325118792a171e.tar.xz
use mount -n for devpts and shm
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.sysinit b/rc.sysinit
index fb96703..fa1ba5f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -29,9 +29,9 @@ if ! /bin/mountpoint -q /dev; then
fi
/bin/mkdir -p /run/lock /dev/{pts,shm}
/bin/chmod 1777 /run/lock
-/bin/mountpoint -q /dev/pts || /bin/mount /dev/pts &> /dev/null \
+/bin/mountpoint -q /dev/pts || /bin/mount -n /dev/pts &> /dev/null \
|| /bin/mount -n -t devpts devpts /dev/pts -o mode=620,gid=5,nosuid,noexec
-/bin/mountpoint -q /dev/shm || /bin/mount /dev/shm &> /dev/null \
+/bin/mountpoint -q /dev/shm || /bin/mount -n /dev/shm &> /dev/null \
|| /bin/mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
# remount root ro to allow for fsck later on, we remount now to