Makefile: unmount lazily so we don't have to sleep.
This commit is contained in:
parent
3851a3fffb
commit
c902250e0d
10
Makefile
10
Makefile
|
@ -319,10 +319,8 @@ ifeq ($(UDEV),NO)
|
||||||
else
|
else
|
||||||
ln -sf /etc/init.d/udev loop/etc/runlevels/sysinit/udev
|
ln -sf /etc/init.d/udev loop/etc/runlevels/sysinit/udev
|
||||||
endif
|
endif
|
||||||
umount loop
|
umount -l loop
|
||||||
sleep 3
|
|
||||||
rmdir loop
|
rmdir loop
|
||||||
e2fsck -fyD $(NBD_DEV)p1 || true
|
|
||||||
qemu-nbd -d $(NBD_DEV)
|
qemu-nbd -d $(NBD_DEV)
|
||||||
|
|
||||||
$(QCOW_IMAGE): image
|
$(QCOW_IMAGE): image
|
||||||
|
@ -375,9 +373,9 @@ remove_checkpoints:
|
||||||
|
|
||||||
clean: umount remove_checkpoints
|
clean: umount remove_checkpoints
|
||||||
rm -f umount
|
rm -f umount
|
||||||
rm -rf loop gentoo
|
rm -rf --one-file-system loop
|
||||||
rm -rf gentoo
|
rm -rf --one-file-system gentoo
|
||||||
rm -rf $(CHROOT)
|
rm -rf --one-file-system $(CHROOT)
|
||||||
|
|
||||||
realclean: clean
|
realclean: clean
|
||||||
${RM} $(RAW_IMAGE) $(QCOW_IMAGE) $(VMDK_IMAGE)
|
${RM} $(RAW_IMAGE) $(QCOW_IMAGE) $(VMDK_IMAGE)
|
||||||
|
|
Loading…
Reference in New Issue