From c902250e0d33b8cf678790d77535cc5a0696fd3c Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Tue, 27 Aug 2013 19:54:41 +0000 Subject: [PATCH] Makefile: unmount lazily so we don't have to sleep. --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 64c19a4..c144cb5 100644 --- a/Makefile +++ b/Makefile @@ -319,10 +319,8 @@ ifeq ($(UDEV),NO) else ln -sf /etc/init.d/udev loop/etc/runlevels/sysinit/udev endif - umount loop - sleep 3 + umount -l loop rmdir loop - e2fsck -fyD $(NBD_DEV)p1 || true qemu-nbd -d $(NBD_DEV) $(QCOW_IMAGE): image @@ -375,9 +373,9 @@ remove_checkpoints: clean: umount remove_checkpoints rm -f umount - rm -rf loop gentoo - rm -rf gentoo - rm -rf $(CHROOT) + rm -rf --one-file-system loop + rm -rf --one-file-system gentoo + rm -rf --one-file-system $(CHROOT) realclean: clean ${RM} $(RAW_IMAGE) $(QCOW_IMAGE) $(VMDK_IMAGE)