summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/mtab.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/mtab.in b/init.d/mtab.in
index 0be5adb..a32b8d6 100644
--- a/init.d/mtab.in
+++ b/init.d/mtab.in
@@ -28,7 +28,7 @@ start()
# makes / readonly and dismounts all tmpfs even if in use which is
# not good. Luckily, umount uses /etc/mtab instead of /proc/mounts
# which allows this hack to work.
- grep -v "^[^ ]* / tmpfs " /proc/mounts > /etc/mtab
+ grep -v "^[! ]* / tmpfs " /proc/mounts > /etc/mtab
# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~