postrm is in linux-image-extra-4.13.0-1014-azure 4.13.0-1014.17.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh
set -e
case "$0::$1" in
*.postinst::configure|*.postrm::remove)
depmod -a -F /boot/System.map-4.13.0-1014-azure 4.13.0-1014-azure || true
for dir in "/etc/kernel/postinst.d" "/etc/kernel/postinst.d/4.13.0-1014-azure"
do
if [ -d "$dir" ]; then
run-parts --verbose --exit-on-error --arg="4.13.0-1014-azure" --arg="/boot/vmlinuz-4.13.0-1014-azure" "$dir"
fi
done
;;
esac
|