Codebase list live-build / upstream/5.0_a11 share / hooks / normal / 0110-remove-backup-files.hook.chroot
upstream/5.0_a11

Tree @upstream/5.0_a11 (Download .tar.gz)

0110-remove-backup-files.hook.chroot @upstream/5.0_a11raw · history · blame

#!/bin/sh

set -e

# Remove backup files
rm -f /boot/*.bak
rm -f /boot/*.old-dkms

rm -f /etc/apt/sources.list~
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