diff options
author | John Crispin <blogic@openwrt.org> | 2013-03-14 19:36:07 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-03-14 19:36:07 +0100 |
commit | 9fcc900e301e0c304488b6b83f10c8db5b8f4ce0 (patch) | |
tree | 259aa698750e5cb00c6d57830f5542751f7ffc90 | |
parent | 8158e9052afbf2ee47de645167b90b6e7fc7d86d (diff) | |
download | unitd-9fcc900e301e0c304488b6b83f10c8db5b8f4ce0.tar unitd-9fcc900e301e0c304488b6b83f10c8db5b8f4ce0.zip |
fix up the mount options to match what openwrt had before using procd as pid 1
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | early.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -24,19 +24,19 @@ static void early_mounts(void) { - mount("proc", "/proc", "proc", 0, 0); - mount("sysfs", "/sys", "sysfs", 0, 0); + mount("proc", "/proc", "proc", MS_NOATIME, 0); + mount("sysfs", "/sys", "sysfs", MS_NOATIME, 0); - mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV, "size=512k,mode=1777"); + mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, NULL); mkdir("/tmp/run", 0777); mkdir("/tmp/lock", 0777); mkdir("/tmp/state", 0777); symlink("/tmp", "/var"); - mount("tmpfs", "/dev", "tmpfs", 0, "mode=0755,size=512K"); + mount("tmpfs", "/dev", "tmpfs", MS_NOATIME, "mode=0755,size=512K"); mkdir("/dev/shm", 0755); mkdir("/dev/pts", 0755); - mount("devpts", "/dev/pts", "devpts", 0, 0); + mount("devpts", "/dev/pts", "devpts", MS_NOATIME, "mode=600"); } static void early_dev(void) |