aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-07 12:48:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-07 12:48:39 +0000
commit666c4d431cd585ce45df93bef58ada648bf88b55 (patch)
tree84c5b3e36557ecba965492b06cdb69d2a7ce6c86
parentd869559037802dcef6e2cd8551ab3ac0ececf690 (diff)
downloadmkinitfs-666c4d431cd585ce45df93bef58ada648bf88b55.tar.bz2
mkinitfs-666c4d431cd585ce45df93bef58ada648bf88b55.tar.xz
init: make / readonly for world when tmpfs
-rwxr-xr-xinitramfs-init.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index d140d75..8604c12 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -328,9 +328,9 @@ if [ "$SINGLEMODE" = "yes" ]; then
fi
# mount tmpfs sysroot
-root_opts=
+root_opts="-o mode=0755"
if [ -n "$KOPT_root_size" ]; then
- root_opts="-o size=$KOPT_root_size"
+ root_opts="$root_opts,size=$KOPT_root_size"
fi
mount -t tmpfs $root_opts tmpfs $sysroot