]> git.proxmox.com Git - pve-installer.git/commitdiff
umount testdir recursively in check-* and clean
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 29 Nov 2019 10:53:44 +0000 (11:53 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 29 Nov 2019 15:05:06 +0000 (16:05 +0100)
recursively unmount testdir before removing it. This prevents the subsequent
call to try to remove files in potentially still bindmounted /proc, /sys, /dev
filesystems.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Makefile

index 1ca29720f0be6d201e1b7dc3d64b568ba45ddef9..95861d86f0e1f0d6689430e37e8a96f704a09bc7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,22 +64,26 @@ upload-pve: ${PVE_DEB}
        truncate -s 2G $@
 
 check-pve: ${PVE_DEB} test.img
+       umount -Rd testdir || true
        rm -rf testdir
        dpkg -X ${PVE_DEB} testdir
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
 
 check-pve-multidisks: ${PVE_DEB} test.img test2.img test3.img test4.img
+       umount -Rd testdir || true
        rm -rf testdir
        dpkg -X ${PVE_DEB} testdir
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img,test2.img,test3.img,test4.img
 
 check-pmg: ${PMG_DEB} test.img
+       umount -Rd testdir || true
        rm -rf testdir
        dpkg -X ${PMG_DEB} testdir
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
 
 .phony: clean
 clean:
+       umount -Rd testdir || true
        make -C html-common clean
        rm -rf *~ *.deb target build packages packages.tmp testdir test*.img pve-final.pkglist *.buildinfo *.changes country.dat final.pkglist
        find . -name '*~' -exec rm {} ';'