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