diff options
author | Tom Gundersen <teg@jklm.no> | 2012-01-14 02:14:59 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-01-14 02:14:59 +0100 |
commit | 5dd3fbaa93c157cfa37351324de06096f4377808 (patch) | |
tree | 11be11a90cc545bd94908de6b21818da6f19fdcd /functions | |
parent | 748db5c108758fd1c54efb4fc3a2e18345646230 (diff) | |
download | initscripts-5dd3fbaa93c157cfa37351324de06096f4377808.tar.xz |
mount: no longer pass '-n' to mount
This was needed when /etc/mtab was a regular file in order to avoid writing to it
when /etc/ was mounted ro. However, now it is not needed.
Passing -n should have been a noop, except for the NILFS mount helper. It will only
start the daemon if the -n flag is not passed.
This fixes FS#22523.
Tested-by: Alexander Lam <lambchop468@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -455,7 +455,7 @@ fsck_reboot() { echo "* *" echo "* Please repair manually and reboot. Note that the root *" echo "* file system is currently mounted read-only. To remount *" - echo "* it read-write type: mount -n -o remount,rw / *" + echo "* it read-write type: mount -o remount,rw / *" echo "* When you exit the maintenance shell the system will *" echo "* reboot automatically. *" echo "* *" @@ -465,7 +465,7 @@ fsck_reboot() { fi echo "Automatic reboot in progress..." umount -a - mount -n -o remount,ro / + mount -o remount,ro / reboot -f exit 0 } |