Don't use -f with mount

This commit is contained in:
Roy Marples 2007-05-30 15:47:54 +00:00
parent e81ab8ecf8
commit 1c1b0b0a4c

View File

@ -52,14 +52,14 @@ do_unmount() {
# OK, try forcing things
if [ ${retry} -le 0 ] ; then
local extra_opts="-f"
case "${cmd}" in
mount*)
# Silly reiserfs helper blocks us, so bypass it
[ "${RC_UNAME}" = "Linux" ] && extra_opts="-i"
umount*)
LC_ALL=C ${cmd} ${extra_opts} "${mnt}" || retry=-999
;;
*)
retry=-999
;;
esac
${cmd} ${extra_opts} "${mnt}" || retry=-999
break
fi
done