summaryrefslogtreecommitdiff
path: root/share/hooks/0140-remove-backup-files.chroot
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 /share/hooks/0140-remove-backup-files.chroot
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 'share/hooks/0140-remove-backup-files.chroot')
-rwxr-xr-xshare/hooks/0140-remove-backup-files.chroot14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/hooks/0140-remove-backup-files.chroot b/share/hooks/0140-remove-backup-files.chroot
new file mode 100755
index 000000000..6058f1eb2
--- /dev/null
+++ b/share/hooks/0140-remove-backup-files.chroot
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+# Remove backup files
+rm -f /etc/apt/trusted.gpg~
+
+rm -f /etc/passwd-
+rm -f /etc/group-
+rm -f /etc/shadow-
+rm -f /etc/gshadow-
+
+rm -f /var/cache/debconf/*-old
+rm -f /var/lib/dpkg/*-old