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

@@ -4,7 +4,7 @@ Architecture: linux-any
Build-Profiles: <!pkg.linux.nosource>
Multi-Arch: same
Depends: ${misc:Depends}
Recommends: krd-linux-source-@version@
Suggests: krd-linux-source-@version@
Description: Kernel configurations for KrD's Linux kernel @version@
This package contains the configuration files used to build kernel
files.

View File

@@ -2,6 +2,7 @@ Package: krd-linux-headers-@abiname@@localversion@
Meta-Rules-Target: headers
Build-Profiles: <!pkg.linux.nokernel>
Depends:
linux-base (>= 4.3~),
krd-linux-headers-@abiname@-common@localversion_headers@ (= ${source:Version}),
krd-linux-image-@abiname@@localversion@ (= ${binary:Version}),
krd-linux-kbuild-@abiname@,

View File

@@ -1,17 +1,22 @@
#!/usr/bin/perl
# Author: Michael Gilbert <michael.s.gilbert@gmail.com>
# Origin: Stripped down version of the linux-headers postinst from Ubuntu's
# 2.6.32-14-generic kernel, which was itself derived from a
# Debian linux-image postinst script.
#!/bin/sh
set -e
$|=1;
my $version = "@abiname@@localversion@";
[ "$1" = configure ] || exit 0
if (-d "/etc/kernel/header_postinst.d") {
system ("run-parts --report --exit-on-error --arg=$version /etc/kernel/header_postinst.d")
&& die "Failed to process /etc/kernel/header_postinst.d";
}
version='@abiname@@localversion@'
exit 0;
have_cmd() { command -v "$1" >/dev/null || return 1 ; }
__END__
if have_cmd linux-run-hooks ; then
## linux-base (>= 4.12~)
linux-run-hooks headers postinst "${version}" -- "$@"
else
if [ -d /etc/kernel/header_postinst.d ] ; then
DEB_MAINT_PARAMS="$*" \
run-parts --report --exit-on-error \
"--arg=${version}" \
/etc/kernel/header_postinst.d
fi
fi
exit 0

View File

@@ -3,7 +3,8 @@ Meta-Rules-Target: image
Build-Profiles: <!pkg.linux.nokernel>
Build-Depends:
kmod,
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
Pre-Depends: linux-base (>= 4.3~)
Depends: kmod, ${misc:Depends}
Suggests: firmware-linux-free, debian-kernel-handbook
Description: KrD's Linux kernel image @upstreamversion@ for @class@
The Linux kernel @upstreamversion@ and modules for use on @longclass@.

View File

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

View File

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

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

View File

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