diff options
author | Bill Nottingham <notting@redhat.com> | 2005-02-09 20:36:26 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-02-09 20:36:26 +0000 |
commit | b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24 (patch) | |
tree | d89a98495dc4b73b68bdfaf2eb62f9b2c4257d87 | |
parent | 7409e1177b7c6681f9024b610c6cf72a88b46904 (diff) | |
download | initscripts-b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24.tar initscripts-b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24.tar.gz initscripts-b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24.tar.bz2 initscripts-b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24.tar.xz initscripts-b13d71d77b6d3e5ff0da5c5c7fb1c63594ba3e24.zip |
fix _netdev unmounting (#147610, <alewis@redhat.com>)
-rwxr-xr-x | rc.d/init.d/netfs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index 627eb681..4e6d0b71 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -22,7 +22,7 @@ NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "nfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab` SMBFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab` NCPFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab` -NETDEVMTAB=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" { print $2 }' /proc/mounts` +NETDEVMTAB=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab` NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 == "nfs" && $2 != "/" { print $2 }' /proc/mounts` SMBMTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" { print $2 }' /proc/mounts` NCPMTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" { print $2 }' /proc/mounts` @@ -70,7 +70,7 @@ case "$1" in [ -n "$NETDEVMTAB" ] && { sig= retry=3 - remaining=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" {print $2}' /proc/mounts` + remaining=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" {print $2}' /etc/mtab` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then @@ -79,7 +79,7 @@ case "$1" in action $"Unmounting network block filesystems: " umount -a -O _netdev fi sleep 2 - remaining=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" {print $2}' /proc/mounts` + remaining=`LC_ALL=C awk '!/^#/ && $4 ~ /_netdev/ && $2 != "/" {print $2}' /etc/mtab` [ -z "$remaining" ] && break /sbin/fuser -k -m $sig $remaining >/dev/null sleep 5 |