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.
This commit is contained in:
parent
f31ab09b85
commit
746b572ee6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user