aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-01-14 02:14:59 +0100
committerTom Gundersen <teg@jklm.no>2012-01-14 02:14:59 +0100
commit5dd3fbaa93c157cfa37351324de06096f4377808 (patch)
tree11be11a90cc545bd94908de6b21818da6f19fdcd /functions
parent748db5c108758fd1c54efb4fc3a2e18345646230 (diff)
downloadinitscripts-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--functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions b/functions
index b409055..4c4d614 100644
--- a/functions
+++ b/functions
@@ -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
}