diff --git a/etc/kernel/postinst.d/30_remove-system-map b/etc/kernel/postinst.d/30_remove-system-map new file mode 100755 index 0000000..fc4a604 --- /dev/null +++ b/etc/kernel/postinst.d/30_remove-system-map @@ -0,0 +1,5 @@ +#!/bin/bash + +if test -x /usr/lib/security-misc/remove-system.map ; then + /usr/lib/security-misc/remove-system.map +fi diff --git a/usr/lib/security-misc/remove-system.map b/usr/lib/security-misc/remove-system.map index 10071f8..621879b 100755 --- a/usr/lib/security-misc/remove-system.map +++ b/usr/lib/security-misc/remove-system.map @@ -9,6 +9,6 @@ shopt -s nullglob for filename in /boot/System.map-* do if [ -f "${filename}" ]; then - rm -f "${filename}" + rm --verbose --force "${filename}" fi done