1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Go back to force unmounting because not doing so was too unreliable.

This commit is contained in:
Kris Kennaway 2006-09-14 05:14:19 +00:00
parent 69e1fc873f
commit 72ac1bdadb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172996

View File

@ -24,11 +24,11 @@ cleanup_mount() {
if [ -d ${chroot}${mount} ]; then
mdir=$(fstat -f ${chroot}${mount} | head -2 | tail -1 | awk '{print $5}')
if [ "${mdir}" = "MOUNT" ]; then
umount ${chroot}${mount} || echo "Cleanup of ${chroot}${mount} failed!"
umount -f ${chroot}${mount} || echo "Cleanup of ${chroot}${mount} failed!"
fi
if [ "${mdir}" = "${chroot}${mount}" ]; then
kill_procs ${chroot} ${mount}
umount ${chroot}${mount} || echo "Cleanup of ${chroot}${mount} failed!"
umount -f ${chroot}${mount} || echo "Cleanup of ${chroot}${mount} failed!"
fi
fi
}