dkms module is built against host kernel, when asking to build against a chroot kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rtl8812au (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Lunar |
New
|
Undecided
|
Unassigned | ||
Mantic |
New
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
High
|
Unassigned |
Bug Description
I was validating https:/
despite only having v5.15 kernel in a chroot, the dkms module was attempted to be built against the host kernel, which failed.
dkms modules should respect the kernel version dkms is asking the module to built against.
Setting up rtl8812au-dkms (4.3.8.
Loading new rtl8812au-
It is likely that 5.13.0-40-generic belongs to a chroot's host
Building for 5.15.0-25-generic
Building initial module for 5.15.0-25-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/
Error! Bad return status for module build on kernel: 5.15.0-25-generic (x86_64)
Consult /var/lib/
on.
dpkg: error processing package rtl8812au-dkms (--configure):
installed rtl8812au-dkms package post-installation script subprocess returned error exit s
tatus 10
dmesg: read kernel buffer failed: Operation not permitted
essing:
rtl8812au-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@normal-
DKMS make.log for rtl8812au-
Wed Apr 27 15:22:31 UTC 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/
make[1]: *** /lib/modules/
make: *** [Makefile:1457: modules] Error 2
Note how make file is inconsistent with the dkms output.
Changed in rtl8812au (Ubuntu): | |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.