summary refs log tree commit diff
path: root/modules/system/boot/stage-2-init.sh
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-08-10 20:46:36 +0200
committerLluís Batlle i Rossell <viric@viric.name>2012-08-10 20:51:13 +0200
commit746b572ee64b432d99e0de38fb247710125e570d (patch)
tree8fd542c885d37455ae251044324204d63c8bc3fc /modules/system/boot/stage-2-init.sh
parentf31ab09b859887f8ca7e8ff441b77ae81601b5dc (diff)
downloadnixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar.gz
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar.bz2
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar.lz
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar.xz
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.tar.zst
nixpkgs-746b572ee64b432d99e0de38fb247710125e570d.zip
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.
Diffstat (limited to 'modules/system/boot/stage-2-init.sh')
-rw-r--r--modules/system/boot/stage-2-init.sh2
1 files changed, 1 insertions, 1 deletions
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