fix mount options for /tmp
[openwrt.git] / target / default / target_skeleton / sbin / mount_root
index 7a81847..b4ec2ca 100755 (executable)
@@ -17,9 +17,9 @@ if [ "$1" != "failsafe" ]; then
                pivot_root /jffs /jffs/rom
                mount none /proc -t proc
                mount none /dev -t devfs
                pivot_root /jffs /jffs/rom
                mount none /proc -t proc
                mount none /dev -t devfs
-               umount rom/proc rom/dev
+               umount /rom/proc rom/dev >&-
        fi
 fi
        fi
 fi
-mount none /tmp -t tmpfs size=50%
+mount none /tmp -t tmpfs -o nosuid,nodev,mode=1777,size=50%
 mkdir -p /dev/pts
 mount none /dev/pts -t devpts
 mkdir -p /dev/pts
 mount none /dev/pts -t devpts
This page took 0.027555 seconds and 4 git commands to generate.