Index: halt.sh =================================================================== --- halt.sh (revision 2421) +++ halt.sh (working copy) @@ -106,6 +106,11 @@ continue fi + # If we're using the mount (probably /usr) then don't unmount us + if [[ " $(fuser -m "${x}" 2>/dev/null) " == *" $$ "* ]] ; then + continue + fi + if ! umount "${x}" &>/dev/null; then # Kill processes still using this mount /bin/fuser -s -k -9 -m "${x}"