diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:56:34 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:02 +0200 |
commit | fae7a1ce27a04d0756e2c64300b64193bd9d4147 (patch) | |
tree | dfd34703d9cc2d8bde6a00bf2d700f087f6cd865 /scripts/build/chroot_hacks | |
parent | c02300e297dd01301832ad3ba7f464b2b2c257ce (diff) | |
download | vyos-live-build-fae7a1ce27a04d0756e2c64300b64193bd9d4147.tar.gz vyos-live-build-fae7a1ce27a04d0756e2c64300b64193bd9d4147.zip |
Moving removal of backup and temporary files to their own hook script.
Diffstat (limited to 'scripts/build/chroot_hacks')
-rwxr-xr-x | scripts/build/chroot_hacks | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks index a440ed195..a30f83054 100755 --- a/scripts/build/chroot_hacks +++ b/scripts/build/chroot_hacks @@ -104,23 +104,6 @@ case "${LB_INITRAMFS_COMPRESSION}" 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 |