summaryrefslogtreecommitdiff
path: root/share/hooks/0110-remove-backup-files.hook.chroot
blob: 55a6b75afcdcdc232a235eb4da6b40ba096afaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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