ref: 666c4d431cd585ce45df93bef58ada648bf88b55
parent: d869559037802dcef6e2cd8551ab3ac0ececf690
author: Natanael Copa <ncopa@alpinelinux.org>
date: Fri Jan 7 06:48:39 CST 2011
init: make / readonly for world when tmpfs
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -328,9 +328,9 @@
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