You are not logged in.

#1 2020-05-30 07:59:43

elParaguayo
Member
Registered: 2018-03-30
Posts: 51

DKMS hook - force overwrite of existing modules

Having solved the issue of the DKMS hook not triggering, I've hit the next issue.

From what I understand, the drivers for my TV tuner require the whole v4l module tree to be rebuilt. However, DKMS won't install these by default as they are already in the modules folder and have the same version number. My tv tuner driver won't install unless the new v4l drivers are also in place.

The solution to this is to use the "--force" flag for the dkms install. However, I'm not sure how best to do this within the existing hooks.

Options seem to be:
1 ) I could modify the line in the dkms hook to include the flag but this would get overwritten if the dkms package is updated.
2) My preference would be to include something in the dkms.conf file but I don't think that's an option.
3) I could write a new hook that reruns dkms install for the installed driver but with the --force flag.
4) Or, I could just prevent kernel upgrades so I don't need to rebuild them!

Any advice would be greatly appreciated.

Offline

Board footer

Powered by FluxBB