Call umount with LC_ALL=C so that we can umount /usr

This commit is contained in:
Roy Marples 2007-05-30 15:24:21 +00:00
parent ece3f4e666
commit e81ab8ecf8

View File

@ -8,7 +8,7 @@ do_unmount() {
local cmd="$1" retval=0 retry= local cmd="$1" retval=0 retry=
local f_opts="-m -c" f_kill="-s " mnt= local f_opts="-m -c" f_kill="-s " mnt=
if [ "${RC_UNAME}" = "Linux" ] ; then if [ "${RC_UNAME}" = "Linux" ] ; then
f_opts="-c" f_opts="-m"
f_kill="-" f_kill="-"
fi fi
@ -34,7 +34,7 @@ do_unmount() {
esac esac
retry=3 retry=3
while ! ${cmd} "${mnt}" 2>/dev/null ; do while ! LC_ALL=C ${cmd} "${mnt}" 2>/dev/null ; do
# Don't kill if it's us (/ and possibly /usr) # Don't kill if it's us (/ and possibly /usr)
local pids="$(fuser ${f_opts} "${mnt}" 2>/dev/null)" local pids="$(fuser ${f_opts} "${mnt}" 2>/dev/null)"
case " ${pids} " in case " ${pids} " in