-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel module installed to wrong path #224
Comments
I see override_dest_module_location in dkms.in can change the dest_module_location, does it not effect? |
I think you already said it, edit |
@scaronni In general case, override_dest_module_location in dkms.in will change the DEST_MODULE_LOCATION to /update/dkms/ automatically. But in this case, this action maybe not come into effect. |
I'm not sure I understood the issue, what you're saying is that even by setting |
@scaronni Yes, you're right. |
I noticed this issue as well. It was introduced in v2.8.8, specifically this commit e6c14d6. |
@arvl130 So mayby my dkms version is too old? |
I'm not sure if the issue has been fixed in newer versions. It looks like the destination module path is still getting overridden, but I'm not seeing it's side-effects anymore, like leaving files untracked by the package manager in my case. I'll have to investigate some more. |
As we know hindsight is always 20-20, so looking back I do wonder: The having such extra override semantics within dkms are kind of bad. In particular, the override kills both the package specifics and distribution specifics (as set in the /etc/ per-package or general configs). Bonus (but unrelated) point, we should really look at having the Perhaps a better solution is to move the override logic from within dkms itself to the top-level |
Just upgraded a package that's affected by this bug, and indeed the side-effects are still there. I agree with @evelikov. While it is understandable that the developers of the project might want a default location for |
After having a quick look the other day, I stand corrected - there's no way to set That said, we could have a "FORCE_...` option to the same effect. Migrating the detection heuristics is a PITA, so I'm inclined to just leave it undefined and let distribution maintainers override it as needed. |
Sorry to hijack the thread, @evelikov I finally got admin access to the repository, you have now full commit access. |
Does anyone bothered fixing this? It completely destroys the ability to replace existing kernel modules. Like swapping inbuilt kernel driver to patched one etc. |
"Bothered" - ouch that's a bit harsh. But seriously - I'm balancing far too many things these days, so if you can open a MR that will be appreciated. |
I just asked. It is not clear about devs intentions here to override the path. I may help though. Also there are other strange issues, e.g.
And it is also not clear for me why this check was added in the first place. |
Update: noticed that original module is actually being removed from the tree on installation. So replacement should work from |
Nevermind, this actually fixed already in 36d755f, just not released yet. Sorry for spamming here. |
path in dkms.conf is set to:
DEST_MODULE_LOCATION[0]=/kernel/drivers/
Normally, this dkms kernel module can be installed to /lib/modules/${kern_ver}/update/dkms/
but this time in one machine, the kernel module was install to /lib/modules/${kern_ver}/kernel/drivers/.
How can I change the path which dkms package installed? Thanks
The text was updated successfully, but these errors were encountered: