Do an exact match on tmpfs

This commit is contained in:
Roy Marples 2007-10-29 13:58:40 +00:00
parent e2ba92f773
commit 8c85fa399f

View File

@ -17,7 +17,7 @@ do_mtab() {
# makes / readonly and dismounts all tmpfs even if in use which is # makes / readonly and dismounts all tmpfs even if in use which is
# not good. Luckily, umount uses /etc/mtab instead of /proc/mounts # not good. Luckily, umount uses /etc/mtab instead of /proc/mounts
# which allows this hack to work. # which allows this hack to work.
grep -v "^[^ ]* / tmpfs" /proc/mounts > /etc/mtab grep -v "^[^ ]* / tmpfs " /proc/mounts > /etc/mtab
# Remove stale backups # Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~ rm -f /etc/mtab~ /etc/mtab~~