Don't use -f with mount
This commit is contained in:
parent
e81ab8ecf8
commit
1c1b0b0a4c
@ -52,14 +52,14 @@ do_unmount() {
|
|||||||
|
|
||||||
# OK, try forcing things
|
# OK, try forcing things
|
||||||
if [ ${retry} -le 0 ] ; then
|
if [ ${retry} -le 0 ] ; then
|
||||||
local extra_opts="-f"
|
|
||||||
case "${cmd}" in
|
case "${cmd}" in
|
||||||
mount*)
|
umount*)
|
||||||
# Silly reiserfs helper blocks us, so bypass it
|
LC_ALL=C ${cmd} ${extra_opts} "${mnt}" || retry=-999
|
||||||
[ "${RC_UNAME}" = "Linux" ] && extra_opts="-i"
|
;;
|
||||||
|
*)
|
||||||
|
retry=-999
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
${cmd} ${extra_opts} "${mnt}" || retry=-999
|
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user