aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-12-05 08:15:53 +0800
committerkris <kris@FreeBSD.org>2004-12-05 08:15:53 +0800
commit80895a2b2dd01badeb50ce08b4bbdd4b9d79b5b7 (patch)
treeb1535889adc83cea0dde3174973e6751a67c23a3 /Tools/portbuild
parent2581e9ef5a34bf1c197854011eb5bf88b8e1e5e0 (diff)
downloadfreebsd-ports-gnome-80895a2b2dd01badeb50ce08b4bbdd4b9d79b5b7.tar.gz
freebsd-ports-gnome-80895a2b2dd01badeb50ce08b4bbdd4b9d79b5b7.tar.zst
freebsd-ports-gnome-80895a2b2dd01badeb50ce08b4bbdd4b9d79b5b7.zip
Be silent about attempts to unmount filesystems from within the chroot
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/clean-chroot8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/clean-chroot b/Tools/portbuild/scripts/clean-chroot
index a756ac31265b..bb9a89925e1c 100755
--- a/Tools/portbuild/scripts/clean-chroot
+++ b/Tools/portbuild/scripts/clean-chroot
@@ -19,10 +19,10 @@ if [ ${arch} = "i386" ]; then
chroot ${chroot} umount -f /compat/linux/proc
fi
-umount -f ${chroot}/a/ports
-umount -f ${chroot}/usr/opt/doc
-umount -f ${chroot}/usr/src
-umount -f ${chroot}/dev
+umount -f ${chroot}/a/ports 2> /dev/null
+umount -f ${chroot}/usr/opt/doc 2> /dev/null
+umount -f ${chroot}/usr/src 2> /dev/null
+umount -f ${chroot}/dev 2> /dev/null
if [ $noclean = 0 ]; then
rm -rf ${chroot}/tmp/*