Skip to content
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

No source removal if no modules #40

Open
sveyret opened this issue Jul 14, 2023 · 2 comments
Open

No source removal if no modules #40

sveyret opened this issue Jul 14, 2023 · 2 comments

Comments

@sveyret
Copy link

sveyret commented Jul 14, 2023

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
@mgorny
Copy link
Member

mgorny commented Jul 14, 2023

No, there's no such option. Source directories are largely unpredictable, so we rely on these symlinks to tell us which one is correct.

@bstaletic
Copy link
Contributor

With newer kernels make module_install works even with CONFIG_MODULES not set.
I do not know who sets up the symlinks, but if one is using gentoo-kernel to manage kernels, this issue does not exist since gentoo/gentoo#32358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants