Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel filling up /boot with cruft
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 73

PostPosted: Tue Mar 18, 2025 5:42 am    Post subject: Genkernel filling up /boot with cruft Reply with quote

When I rebuild a kernel with genkernel how do i configure it to not make backups of the old kernel of the same version? This is literally filling up my /boot because kernels are getting too big to have that many in there.

I specifically made room for TWO kernel versions and i never want two of the same version. How do I disable this? I cant see anything in genkernel.conf
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 73

PostPosted: Tue Mar 18, 2025 4:46 pm    Post subject: Reply with quote

Josef.95 wrote:
It is probably configurable with USE-flags on sys-kernel/installkernel package.
See https://forums.gentoo.org/viewtopic-t-1171150.html


Is Installkernel an alternative to genkernel? I have been using genkernel since the dawn of genkernel and i really dont like to switch tools without a real reason, for example. I still use etc-update exclusively lol!

IMHO, Genkernel should not be automagically cluttering up /boot without it being optionable, not everyone has 2349 TB in /boot. It never used to do this and I really dont like it - it means i have to run genkernel in one terminal, open another, cd into /boot and rm -f *.old or else there wont be room.

How do I post a request for this to be a config item in genkernel.conf?


.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23218

PostPosted: Tue Mar 18, 2025 5:11 pm    Post subject: Reply with quote

No, installkernel is not an alternative to genkernel. The installkernel package is used when installing kernels from any of several techniques.
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 73

PostPosted: Tue Mar 18, 2025 6:39 pm    Post subject: Reply with quote

Hu wrote:
No, installkernel is not an alternative to genkernel. The installkernel package is used when installing kernels from any of several techniques.


Installed that package with the systemd use flag enabled (i use systemd not openrc). did two genkernels in a row because it was a new kernel. .old backups were still generated. This is being done by genkernel itself. This needs to have a switch in genkernel.conf - where do I post a feature request?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10754
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Mar 18, 2025 9:19 pm    Post subject: Reply with quote

mark4 wrote:
...This is being done by genkernel itself.
Well, yes it is, but this is also the way that the manual kernel build "make install" behaves. So genkernel is mimicking the standard process.

mark4 wrote:
... This needs to have a switch in genkernel.conf - where do I post a feature request?
That would be at bugs.gentoo.org, but two caveats for you:
  1. genkernel is almost deprecated at this point so don't expect a quick response.
  2. I'm all for sharp tools, or at least the configuration options to make them sharper / safer, but is it really such a big deal to make your /boot partition a little larger? It would still be a small percentage of your total space—and it would potentially provide a small additional amount of robustness.
- John

P.S.: I actually refactored that code long ago. If you want to take a crack at it yourself, take a look at the copy_image_with_preserve() function in /usr/share/genkernel/gen_funcs.sh. Bug reports with solutions typically get a lot faster response. ;)

Edit: Corrected one really egregious typo. Thanks, Hu.
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Wed Mar 19, 2025 1:35 am; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23218

PostPosted: Tue Mar 18, 2025 10:09 pm    Post subject: Reply with quote

As a minor point:
John R. Graham wrote:
  1. Gentoo is almost deprecated at this point so don't expect a quick response.
I think this was meant to be genkernel, not Gentoo. I have previously seen mention that genkernel is on its way out. Gentoo, on the other hand, has been dying for 20 years and still seems fine and ready to go for a walk.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10754
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 19, 2025 1:34 am    Post subject: Reply with quote

Wow. Yes. Feel free to edit such an obvious typo in the future as soon as you see it.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 73

PostPosted: Wed Mar 19, 2025 1:38 am    Post subject: Reply with quote

John R. Graham wrote:
Wow. Yes. Feel free to edit such an obvious typo in the future as soon as you see it.

- John


I know gentoo itself is not deprected, the intent of the message was not lost :)
<3
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 568

PostPosted: Wed Mar 19, 2025 9:28 am    Post subject: Reply with quote

Why are you using a separate /boot-partition? In many cases it is not needed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum