security-misc/etc/kernel/postinst.d/30_remove-system-map
Patrick Schleizer dbea7d1511
add hook etc/kernel/postinst.d/30_remove-system-map to remove system.map
on kernel package upgrade;

self-document this package: during upgrade the following will be written
to stdout:

Setting up linux-image-4.19.0-5-amd64 (4.19.37-5+deb10u2) ...
/etc/kernel/postinst.d/30_remove-system-map:
removed '/boot/System.map-4.19.0-5-amd64
2019-08-14 07:22:14 +00:00

6 lines
119 B
Bash
Executable File

#!/bin/bash
if test -x /usr/lib/security-misc/remove-system.map ; then
/usr/lib/security-misc/remove-system.map
fi