Bug 1875940 - Dkms creates wrong symlinks for previous kernel [solved]
Summary: Dkms creates wrong symlinks for previous kernel [solved]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dkms
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simone Caronni
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-04 16:42 UTC by knossos456
Modified: 2020-12-16 01:14 UTC (History)
2 users (show)

Fixed In Version: dkms-2.8.4-1.fc33 dkms-2.8.4-1.fc32 dkms-2.8.4-1.el8 dkms-2.8.4-1.el7
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-09 01:15:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description knossos456 2020-09-04 16:42:35 UTC
I've build Dkms in Fedora I've used before under Ubuntu for my DVB cards.

Fedora use weak-updates for previous kernel module loading, and this contains wrong symlinks to the newest Kernel module instead the relevant kernel module.

Example, I got update to kernel 5.8 today. The module for kernel 5.8 works , but i have, as example for previous kernel :
ls -l /lib/modules/5.7.17-200.fc32.x86_64/weak-updates
lrwxrwxrwx. 1 root root 54 4 sept. 10:21 stb0899.ko.xz -> /lib/modules/5.8.4-200.fc32.x86_64/extra/stb0899.ko.xz
instead:
lrwxrwxrwx. 1 root root 54 4 sept. 10:21 stb0899.ko.xz -> /lib/modules/5.7.17-200.fc32.x86_64/extra/stb0899.ko.xz (module is in correct place but wrong symlink)

So when i boot to previous kernel, modules loading fails .
I know i can manually change the symlinks of each line at each kernel update, but this is not the purpose of dkms ,isen't it ?

Can you correct the dkms routine ?

Comment 1 knossos456 2020-09-14 06:32:50 UTC
No Answer ?

Comment 2 knossos456 2020-09-18 14:03:06 UTC
I've found the solution for my modules. Thanks to the internet because no help from Fedora teams nor DKMS manual pages.
The normal way is to not use weak-updates for DKMS.
As Fedora /CentOs and I presume Redhat use weak-updates as default conf, you have to add in each dkms.conf a line :
NO_WEAK_MODULES="true" or NO_WEAK_MODULES="yes"
Tested this morning for kernel updates, ow previous kernel modules are loading

If a maintainer comes here please tell the dev team to update the dkms manual page!

Comment 3 Fedora Update System 2020-11-30 09:33:34 UTC
FEDORA-2020-f876bb28c8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f876bb28c8

Comment 4 Fedora Update System 2020-11-30 09:33:39 UTC
FEDORA-EPEL-2020-6c6bb5bdfc has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-6c6bb5bdfc

Comment 5 Fedora Update System 2020-11-30 09:33:41 UTC
FEDORA-2020-3776969d93 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3776969d93

Comment 6 Fedora Update System 2020-11-30 09:33:44 UTC
FEDORA-EPEL-2020-ad3fed49e0 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-ad3fed49e0

Comment 7 Fedora Update System 2020-12-01 01:59:53 UTC
FEDORA-2020-f876bb28c8 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-f876bb28c8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f876bb28c8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2020-12-01 02:08:11 UTC
FEDORA-EPEL-2020-6c6bb5bdfc has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-6c6bb5bdfc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-12-01 02:13:26 UTC
FEDORA-2020-3776969d93 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3776969d93`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3776969d93

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2020-12-01 02:13:29 UTC
FEDORA-EPEL-2020-ad3fed49e0 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-ad3fed49e0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-12-09 01:15:31 UTC
FEDORA-2020-3776969d93 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2020-12-09 01:22:30 UTC
FEDORA-2020-f876bb28c8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 knossos456 2020-12-09 15:32:44 UTC
I've got finally updated dkms with updated manual, definitively solved !

Comment 14 Fedora Update System 2020-12-16 00:54:26 UTC
FEDORA-EPEL-2020-6c6bb5bdfc has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2020-12-16 01:14:17 UTC
FEDORA-EPEL-2020-ad3fed49e0 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.