Mount all partitions with the noatime option
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 27 Aug 2013 01:07:13 +0000 (21:07 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Jul 2014 02:15:23 +0000 (22:15 -0400)
stage1/create-config-files

index 8fa08ce..b206749 100755 (executable)
@@ -10,7 +10,7 @@ EOF
 
 if [ -n "${BOOT_PARTITION}" ]; then
     install -v -m755 -d ${LFS}/mnt/boot
-    echo "${BOOT_PARTITION} /mnt/boot auto defaults 0 0" >> ${LFS}/etc/fstab
+    echo "${BOOT_PARTITION} /mnt/boot auto defaults,noatime 0 0" >> ${LFS}/etc/fstab
 fi
 if [ -n "${SWAP_PARTITION}" ]; then
     echo "${SWAP_PARTITION} none swap sw 0 0" >> ${LFS}/etc/fstab
@@ -20,8 +20,8 @@ echo "${LFS_PARTITION}  /                 auto defaults,noatime 0 0" >> ${LFS}/e
 cat >> ${LFS}/etc/fstab << "EOF"
 proc              /proc             proc     defaults         0 0
 sysfs             /sys              sysfs    defaults         0 0
-tmpfs             /run              tmpfs    defaults         0 0
-tmpfs             /tmp              tmpfs    defaults,mode=1777,size=_TMP_PARTITION_SIZE_ 0 0
+tmpfs             /run              tmpfs    defaults,noatime 0 0
+tmpfs             /tmp              tmpfs    defaults,,noatime,mode=1777,size=_TMP_PARTITION_SIZE_ 0 0
 devpts            /dev/pts          devpts   gid=4,mode=620   0 0
 shm               /dev/shm          tmpfs    defaults         0 0