1
0
linux/debian/templates/image.prerm.in

22 lines
416 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
[ "$1" = remove ] || exit 0
version='@abiname@@localversion@'
image_path="/boot/@image-stem@-${version}"
if command -v linux-check-removal >/dev/null ; then
linux-check-removal "${version}"
fi
if [ -d /etc/kernel/prerm.d ] ; then
DEB_MAINT_PARAMS="$*" \
run-parts --report --exit-on-error \
"--arg=${version}" \
"--arg=${image_path}" \
/etc/kernel/prerm.d
fi
exit 0