release 6.14.9
This commit is contained in:
21
debian/templates/image.prerm.in
vendored
21
debian/templates/image.prerm.in
vendored
@@ -6,16 +6,23 @@ set -e
|
||||
version='@abiname@@localversion@'
|
||||
image_path="/boot/@image-stem@-${version}"
|
||||
|
||||
if command -v linux-check-removal >/dev/null ; then
|
||||
have_cmd() { command -v "$1" >/dev/null || return 1 ; }
|
||||
|
||||
if have_cmd linux-check-removal ; 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
|
||||
if have_cmd linux-run-hooks ; then
|
||||
## linux-base (>= 4.12~)
|
||||
linux-run-hooks image prerm "${version}" "${image_path}" -- "$@"
|
||||
else
|
||||
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
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user