1
0

release 6.14.9

This commit is contained in:
2025-05-29 17:14:07 +03:00
parent 20c917c71c
commit 245a50c3dd
73 changed files with 364 additions and 919 deletions

View File

@@ -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