From 746b572ee64b432d99e0de38fb247710125e570d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 10 Aug 2012 20:46:36 +0200 Subject: [PATCH] stage2init: fix respecting 'noatime' mount options for / We had a "mount -o remount,rw none /" that was setting back 'relatime', although we had set 'noatime' at initrd mount. Removing the word 'none' fixed it. Specifying a device (in this case 'none'), makes mount to forget previous device options. According to manpage, it says not to read fstab or mtab. But the effect is that of setting 'relatime', if it was mounted 'noatime. --- modules/system/boot/stage-2-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index 0a42083144d..f0e04aed179 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -28,7 +28,7 @@ setPath "@path@" # However, in some environments (such as Amazon EC2), stage 2 is # executed directly, and the root is read-only. So make it writable # here. -mount -n -o remount,rw none / +mount -n -o remount,rw / # Likewise, stage 1 mounts /proc, /dev and /sys, so if we don't have a