[SCM] live-build branch, debian, updated. debian/3.0_a25-1-57-g6167d10
intrigeri
intrigeri at boum.org
Thu Aug 4 19:53:20 UTC 2011
The following commit has been merged in the debian branch:
commit d8ac62a9ec105c80163a025ad06a2d91bca8b753
Author: intrigeri <intrigeri at boum.org>
Date: Thu Aug 4 19:46:35 2011 +0200
Cleaning up temporary directories at the same time as other cruft.
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks
index eed0294..57f5769 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -226,6 +226,14 @@ rm -f chroot/var/cache/debconf/*-old
rm -f chroot/var/lib/dpkg/*-old
rm -f chroot/var/log/apt/term.log
+# Delete and re-create temporary directories
+TEMP_DIRS="/tmp /var/tmp"
+for DIR in ${TEMP_DIRS}
+do
+ rm -rf "chroot/${DIR}"
+ install -d -m 1777 "chroot/${DIR}"
+done
+
if [ -n "${LB_ROOT_COMMAND}" ]
then
${LB_ROOT_COMMAND} chown -R --quiet $(whoami):$(whoami) chroot
--
live-build
More information about the debian-live-changes
mailing list