nrelease - Add delay before umounting

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 13 August 2013 16:22 UTC

- Add a delay before unmounting the usb image filesystem.

###

diff --git a/nrelease/Makefile b/nrelease/Makefile
index f86466e..42e3fba 100644
--- a/nrelease/Makefile
+++ b/nrelease/Makefile
@@ -377,6 +377,8 @@ mkimg:
mv ${IMGMNT}/boot/loader.conf.new ${IMGMNT}/boot/loader.conf
@echo "STEP: cleanup"
df ${IMGMNT}
+ sync
+ sleep 1
umount ${IMGMNT}
vnconfig -u `cat ${ISODIR}/vn.which`
rm -f ${ISODIR}/vn.which
@@ -384,6 +386,8 @@ mkimg:
@echo "STEP: done"

clean:
+ sync
+ sleep 1
-umount ${ISOROOT}/usr/distfiles > /dev/null 2>&1
-umount ${ISOROOT}/usr/dports > /dev/null 2>&1
-umount ${ISOROOT}/dev > /dev/null 2>&1

836f312 nrelease - Add delay before umounting
nrelease/Makefile | 4 ++++
1 file changed, 4 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share