release 6.14.9
This commit is contained in:
20
debian/templates/image.preinst.in
vendored
20
debian/templates/image.preinst.in
vendored
@@ -6,18 +6,25 @@ if [ "$1" = abort-upgrade ] ; then exit 0 ; fi
|
||||
version='@abiname@@localversion@'
|
||||
image_path="/boot/@image-stem@-${version}"
|
||||
|
||||
have_cmd() { command -v "$1" >/dev/null || return 1 ; }
|
||||
|
||||
if [ "$1" = install ]; then
|
||||
# Create a flag file for postinst
|
||||
mkdir -p "/lib/modules/${version}"
|
||||
touch "/lib/modules/${version}/.fresh-install"
|
||||
fi
|
||||
|
||||
if [ -d /etc/kernel/preinst.d ] ; then
|
||||
DEB_MAINT_PARAMS="$*" \
|
||||
run-parts --report --exit-on-error \
|
||||
"--arg=${version}" \
|
||||
"--arg=${image_path}" \
|
||||
/etc/kernel/preinst.d
|
||||
if have_cmd linux-run-hooks ; then
|
||||
## linux-base (>= 4.12~)
|
||||
linux-run-hooks image preinst "${version}" "${image_path}" -- "$@"
|
||||
else
|
||||
if [ -d /etc/kernel/preinst.d ] ; then
|
||||
DEB_MAINT_PARAMS="$*" \
|
||||
run-parts --report --exit-on-error \
|
||||
"--arg=${version}" \
|
||||
"--arg=${image_path}" \
|
||||
/etc/kernel/preinst.d
|
||||
fi
|
||||
fi
|
||||
|
||||
f='/etc/apt/apt.conf.d/krd-linux'
|
||||
@@ -42,5 +49,4 @@ APT
|
||||
};
|
||||
EOF
|
||||
chmod 0644 "$f"
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user