From a77a771269f03e428d9c541a34010e01807396cf Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 9 Mar 2008 21:09:25 +0000 Subject: [PATCH] Better handle restarting a previously aborted build by adding a protective umount (ignoring the exit code). This goes into the clean target because otherwise clean would choke on ${ISOROOT}/tmp/packages being read only. Requested-by: dillon --- nrelease/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nrelease/Makefile b/nrelease/Makefile index af6e43322a..67e45498b2 100644 --- a/nrelease/Makefile +++ b/nrelease/Makefile @@ -1,4 +1,4 @@ -# $DragonFly: src/nrelease/Makefile,v 1.77 2008/03/08 22:00:03 swildner Exp $ +# $DragonFly: src/nrelease/Makefile,v 1.78 2008/03/09 21:09:25 swildner Exp $ # ######################################################################### @@ -266,6 +266,7 @@ mkiso: -R -J -V DragonFly -o ${ISOFILE} . ) clean: + -umount ${ISOROOT}/tmp/packages if [ -d ${ISOROOT} ]; then chflags -R noschg ${ISOROOT}; fi if [ -d ${ISOROOT} ]; then rm -rf ${ISOROOT}/*; fi if [ -d ${NRLOBJDIR}/nrelease ]; then rm -rf ${NRLOBJDIR}/nrelease; fi -- 2.11.4.GIT