Skip to content

dkms build leaves empty folders in /usr/lib/modules/KERNEL/build behind #16221

Closed
@SoongNoonien

Description

@SoongNoonien

System information

Type Version/Name
Distribution Name Arch Linux
Distribution Version rolling
Kernel Version 6.6.31
Architecture amd64
OpenZFS Version 2.2.4

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):

/usr/lib/modules/6.6.31-2-lts/build/module# ls
insgesamt 13K
drwxr-xr-x  3 root root  3 23. Mai 18:23 avl
drwxr-xr-x 12 root root 12 23. Mai 18:23 icp
drwxr-xr-x  3 root root  3 23. Mai 18:23 lua
drwxr-xr-x  3 root root  3 23. Mai 18:23 nvpair
drwxr-xr-x  4 root root  4 23. Mai 18:23 os
drwxr-xr-x  3 root root  3 23. Mai 18:23 unicode
drwxr-xr-x  3 root root  3 23. Mai 18:23 zcommon
drwxr-xr-x  3 root root  3 23. Mai 18:23 zfs
drwxr-xr-x  4 root root  4 23. Mai 18:23 zstd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions