-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
dkms build leaves empty folders in /usr/lib/modules/KERNEL/build
behind
#16221
Comments
Ok, I've looked a little closer and the folders are actually not empty. Probably this is the reason why they aren't removed. There are hidden folders named
This is the content of such a file:
|
Yes that is the reason the folder(s) won't get removed. |
I'm not sure how this can be a package manager issue when those files aren't even part of the package database:
That these |
Personally I'm on a Mint (ubuntu based) and still on 2.1.15 maybe there's a difference to a 2.2.x release.
How they end up on your system under /usr/lib/modules I don't know - sorry. |
It worked for me until 2.2.3 and started to break after the update to 2.2.4.
Yes, I found this as well.
They end up under |
Where did you find them in the git source tree? |
Sorry if I wasn't clear. |
Ok, yes, this makes sense. |
From what source did you install the zfs-dkms package? |
Yes, but building a dkms config is also support, which is what archzfs does.
No, this is not the case as I've stated above these files are not part of the package database. But here is a list of all files contained in the |
Previously the dkms build left some unwanted files in `/usr/lib/modules` which could cause package managers to not properly clean up old kernels. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Martin Wagner <[email protected]> Closes openzfs#16221 Closes openzfs#16241
Previously the dkms build left some unwanted files in `/usr/lib/modules` which could cause package managers to not properly clean up old kernels. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Martin Wagner <[email protected]> Closes openzfs#16221 Closes openzfs#16241
System information
Describe the problem you're observing
It seems like the dkms build leaves some empty folder tree in
/usr/lib/modules/6.6.31-2-lts/build/module
behind. I'm not sure if this is an OpenZFS bug or rather an ArchZFS one. But as far as I know they don't do something special with dkms over on ArchZFS. Maybe it could be a problem with dkms itself? In my case this looks something like that (no folder actually contains any files):This has the unwanted side effect that the package manager won't remove old directories under
/usr/lib/modules
on kernel updates.Describe how to reproduce the problem
Build the zfs kernel module via dkms.
Include any warning/errors/backtraces from the system logs
Unfortunately there are none.
The text was updated successfully, but these errors were encountered: