Blame 0018-base-init.sh-mount-tmpfs-with-strictatime.patch

Harald Hoyer 1f6198
From 7f217d77266d4c9c283e7a6d4f576d412a1df9e5 Mon Sep 17 00:00:00 2001
Harald Hoyer 1f6198
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 1f6198
Date: Wed, 18 Apr 2012 12:44:00 +0200
Harald Hoyer 1f6198
Subject: [PATCH] base/init.sh: mount tmpfs with strictatime
Harald Hoyer 1f6198
Harald Hoyer 1f6198
---
Harald Hoyer 1f6198
 modules.d/99base/init.sh |    6 +++---
Harald Hoyer 1f6198
 1 file changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer 1f6198
Harald Hoyer 1f6198
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
Harald Hoyer 1f6198
index 0ea72e8..65bc88f 100755
Harald Hoyer 1f6198
--- a/modules.d/99base/init.sh
Harald Hoyer 1f6198
+++ b/modules.d/99base/init.sh
Harald Hoyer 1f6198
@@ -46,7 +46,7 @@ if [ "$RD_DEBUG" = "yes" ]; then
Harald Hoyer 1f6198
 fi
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
 if ! ismounted /dev; then
Harald Hoyer 1f6198
-    mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 
Harald Hoyer 1f6198
+    mount -t devtmpfs -o mode=0755,nosuid,strictatime devtmpfs /dev >/dev/null 
Harald Hoyer 1f6198
 fi
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
 # prepare the /dev directory
Harald Hoyer 1f6198
@@ -62,12 +62,12 @@ fi
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
 if ! ismounted /dev/shm; then
Harald Hoyer 1f6198
     mkdir -m 0755 /dev/shm
Harald Hoyer 1f6198
-    mount -t tmpfs -o mode=1777,nosuid,nodev tmpfs /dev/shm >/dev/null 
Harald Hoyer 1f6198
+    mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime tmpfs /dev/shm >/dev/null 
Harald Hoyer 1f6198
 fi
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
 if ! ismounted /run; then
Harald Hoyer 1f6198
     mkdir -m 0755 /newrun
Harald Hoyer 1f6198
-    mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /newrun >/dev/null 
Harald Hoyer 1f6198
+    mount -t tmpfs -o mode=0755,nosuid,nodev,strictatime tmpfs /newrun >/dev/null 
Harald Hoyer 1f6198
     cp -a /run/* /newrun >/dev/null 2>&1
Harald Hoyer 1f6198
     mount --move /newrun /run
Harald Hoyer 1f6198
     rm -fr /newrun