summaryrefslogtreecommitdiff
path: root/scripts/build/clean
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2010-07-31 21:15:31 -0400
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:16 +0100
commitff9b1446b4eef136bb54cbc8c12006e575b7ed80 (patch)
tree1fa9b8a79dae6f97a79ace824a9f5f01b7c58dd1 /scripts/build/clean
parenta0fcfedb0b2cc1b6cb6308d220c7c3b90e075f7e (diff)
downloadvyos-live-build-ff9b1446b4eef136bb54cbc8c12006e575b7ed80.tar.gz
vyos-live-build-ff9b1446b4eef136bb54cbc8c12006e575b7ed80.zip
Run chroot stage with /var/lib/dpkg mounted as a tmpfs
Idea from Thomas Lange and FAI. Speedup in my testcase (standard image) is 3m00 => 2m50, probably much better improvements for the desktop image clients.
Diffstat (limited to 'scripts/build/clean')
-rwxr-xr-xscripts/build/clean1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/clean b/scripts/build/clean
index 2df040c82..13fc18556 100755
--- a/scripts/build/clean
+++ b/scripts/build/clean
@@ -79,6 +79,7 @@ do
${LH_ROOT_COMMAND} umount -f chroot/dev/shm > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/dev/pts > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/dev > /dev/null 2>&1 || true
+ ${LH_ROOT_COMMAND} umount -f chroot/var/lib/dpkg > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/binary.tmp > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/dev.tmp/pts > /dev/null 2>&1 || true