summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-16 23:56:34 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-16 23:56:55 +0100
commit43434c2f6a84ec5ad294c23506d6aff4ebd96c70 (patch)
tree53f834c60fa78946a8a6483c685d720ede46f01d /scripts/build/chroot_hacks
parent8618786d5f303fe8e35cecc3be46f144d2aa2e53 (diff)
downloadvyos-live-build-43434c2f6a84ec5ad294c23506d6aff4ebd96c70.tar.gz
vyos-live-build-43434c2f6a84ec5ad294c23506d6aff4ebd96c70.zip
Moving removal of backup and temporary files to their own hook script.
Diffstat (limited to 'scripts/build/chroot_hacks')
-rwxr-xr-xscripts/build/chroot_hacks17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks
index 204cc4efe..5a9494883 100755
--- a/scripts/build/chroot_hacks
+++ b/scripts/build/chroot_hacks
@@ -114,23 +114,6 @@ case "${LB_PARENT_DISTRIBUTION}" in
;;
esac
-# Remove cruft
-rm -f chroot/boot/initrd*bak*
-rm -f chroot/etc/apt/trusted.gpg~
-rm -f chroot/etc/group- chroot/etc/passwd-
-rm -f chroot/etc/gshadow- chroot/etc/shadow-
-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