summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-08-31 20:34:02 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 18:23:59 +0200
commit287a1db114b966e86a99c7cf596065992736b7c0 (patch)
tree2948f49d934bc755d46c7ffb45166a5dfebd1a72
parent4173d55009b369e2ee9079f0dbbcf0fc15a24805 (diff)
fstab: add noatime to rootfs mount flags
We rely on the init system to remount the root file system read-only, which makes the mount flags for the rootfs in fstab relevant. Since we run on flash drives minimize write cycles by disabling atime by by default. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--recipes-core/base-files/base-files/fstab2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/base-files/base-files/fstab b/recipes-core/base-files/base-files/fstab
index 739b844..ab73d00 100644
--- a/recipes-core/base-files/base-files/fstab
+++ b/recipes-core/base-files/base-files/fstab
@@ -1,6 +1,6 @@
# stock fstab - you probably want to override this with a machine specific one
-/dev/root / auto defaults 1 1
+/dev/root / auto noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0