summary refs log tree commit diff
path: root/os/etc/kernel/postrm.d/cleanup.sh
blob: 9faec5781a397d74e1f1c03a697d306e3eca14f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -eu

VERSION=$1

find /boot -maxdepth 1 -type f -not -name "*${VERSION}*" \( -name 'System.map*' -or -name 'vmlinuz*' -or -name 'initramfs*' \) -print \
	| xargs rm -v

echo
echo "done."