From 5257ba51b9524b101533308024862e4344c8b6f6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 11 Jul 2007 17:27:46 +0000 Subject: Don't unmount network filesystems in localmount or halt.sh, #175602. --- sh/rc-mount.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sh/rc-mount.sh') diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh index be9dffb..17ef9b5 100644 --- a/sh/rc-mount.sh +++ b/sh/rc-mount.sh @@ -1,9 +1,9 @@ # Copyright 2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# bool do_unmount(char *cmd, char *no_unmounts, char *nodes, char *fslist) +# bool do_unmount(char *cmd, char *no_unmounts, char *nodes, char *fslist, char *no_fslist) # Handy function to handle all our unmounting needs -# find-mount is a C program to actually find our mounts on our supported OS's +# mountinfo is a C program to actually find our mounts on our supported OS's do_unmount() { local cmd="$1" retval=0 retry= local f_opts="-m -c" f_kill="-s " mnt= @@ -12,7 +12,7 @@ do_unmount() { f_kill="-" fi - local mnts="$(mountinfo ${2:+--skip-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 --reverse \ + local mnts="$(mountinfo ${2:+--skip-point-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 ${5:+--skip-fstype-regex} $5 \ | sed -e "s/'/'\\\\''/g" -e "s/^/'/g" -e "s/$/'/g")" eval set -- ${mnts} for mnt in "$@" ; do -- cgit v1.2.3