Skip to content

No source removal if no modules #40

@sveyret

Description

@sveyret

Hi,
If I understand the source code correctly, the kernel source directory (/usr/src/linux-xxx) is tied to the module directory (/lib/modules/xxx) because it is read from a link (named build).
On one of my server, I have a kernel where CONFIG_MODULES is disabled. In this case, there is no modules directory and so, eclean-kernel is never removing my old sources.
Is there currently a way to say to eclean-kernel to remove the source directories without looking for the modules? Or could that be an option?
Thank you.

> eclean-kernel -l
6.1.38-gentoo [6.1.38-gentoo]
- systemmap: /boot/System.map-6.1.38-gentoo
- vmlinuz: /boot/vmlinuz-6.1.38-gentoo
- last modified: 2023-07-14 13:09:46
6.1.31-gentoo [6.1.31-gentoo]
- systemmap: /boot/System.map-6.1.31-gentoo
- vmlinuz: /boot/vmlinuz-6.1.31-gentoo
- last modified: 2023-06-03 12:47:53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions