release 6.14.9
This commit is contained in:
23
debian/templates/image.postrm.in
vendored
23
debian/templates/image.postrm.in
vendored
@@ -4,18 +4,25 @@ set -e
|
||||
version='@abiname@@localversion@'
|
||||
image_path="/boot/@image-stem@-${version}"
|
||||
|
||||
have_cmd() { command -v "$1" >/dev/null || return 1 ; }
|
||||
|
||||
rm -f "/lib/modules/${version}/.fresh-install"
|
||||
|
||||
if [ "$1" != upgrade ] && command -v linux-update-symlinks >/dev/null ; then
|
||||
if [ "$1" != upgrade ] && have_cmd linux-update-symlinks ; then
|
||||
linux-update-symlinks remove "${version}" "${image_path}"
|
||||
fi
|
||||
|
||||
if [ -d /etc/kernel/postrm.d ] ; then
|
||||
DEB_MAINT_PARAMS="$*" \
|
||||
run-parts --report --exit-on-error \
|
||||
"--arg=${version}" \
|
||||
"--arg=${image_path}" \
|
||||
/etc/kernel/postrm.d
|
||||
if have_cmd linux-run-hooks ; then
|
||||
## linux-base (>= 4.12~)
|
||||
linux-run-hooks image postrm "${version}" "${image_path}" -- "$@"
|
||||
else
|
||||
if [ -d /etc/kernel/postrm.d ] ; then
|
||||
DEB_MAINT_PARAMS="$*" \
|
||||
run-parts --report --exit-on-error \
|
||||
"--arg=${version}" \
|
||||
"--arg=${image_path}" \
|
||||
/etc/kernel/postrm.d
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = purge ]; then
|
||||
@@ -49,7 +56,7 @@ if [ "$1" = purge ]; then
|
||||
;;
|
||||
esac
|
||||
done
|
||||
rmdir "/lib/modules/${version}" || true
|
||||
rmdir "/lib/modules/${version}" || :
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user