Package: dkms
X-Debbugs-Cc: cliffjki...@gmail.com
Version: 3.0.10-8+deb12u1
Severity: normal

Dear Maintainer,

I recently decided to jump from kernel 6.1 to 6.12 via debian backports.
(-t bookworm-backports).
I needed to ensure I had /etc/dkms/framework.conf pointing to a sign_file
executable, as I have secureboot with a custom platform key. I had tested
6.12 fairly extensively and wanted to remove kernel 6.1 from disk.
/etc/dkms/framework.conf says use "$kernelver".
sign_file="/usr/lib/linux-kbuild-$kernelver/scripts/sign-file"

The value in framework's $kernelver includes platform. This results in an
error.
Sign command: /usr/lib/linux-kbuild-6.12.32+bpo-amd64/scripts/sign-file
Binary /usr/lib/linux-kbuild-6.12.32+bpo-amd64/scripts/sign-file not found,
modules won't be signed

Kbuild (linux-kbuild-6.12.32+bpo) installs in
/usr/lib/linux-kbuild-maj.min.point+bpo/
/usr/lib/linux-kbuild-6.12.32+bpo/

I would expect either $kernelver to align with the kbuild naming
convention, or the kbuild naming convention to be exposed in dkms
framework.conf to ensure that modules are signed by the appropriate script.


-- System Information:
Debian Release: 12.11
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.30+bpo-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Enforcing - Policy name: default

Versions of packages dkms depends on:
ii  build-essential        12.9
ii  clang-14 [c-compiler]  1:14.0.6-12
ii  clang-19 [c-compiler]  1:19.1.4-1~deb12u1
ii  dpkg-dev               1.21.22
ii  gcc [c-compiler]       4:12.2.0-3
ii  gcc-12 [c-compiler]    12.2.0-14+deb12u1
ii  kmod                   30+20221128-1
ii  lsb-release            12.0-1
ii  make                   4.3-4.1
ii  patch                  2.7.6-7

Versions of packages dkms recommends:
ii  fakeroot                                     1.31-1.2
ii  linux-headers-amd64 [linux-headers-generic]  6.12.32-1~bpo12+1
ii  sudo                                         1.9.13p3-1+deb12u2

Versions of packages dkms suggests:
ii  e2fsprogs  1.47.0-2
pn  menu       <none>

-- Configuration Files:
/etc/dkms/framework.conf changed [not included]
/etc/modprobe.d/dkms.conf changed [not included]

-- no debconf information

Reply via email to