View previous topic :: View next topic |
Author |
Message |
mark4 n00b

Joined: 26 Feb 2011 Posts: 73
|
Posted: Tue Mar 18, 2025 5:42 am Post subject: Genkernel filling up /boot with cruft |
|
|
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 |
|
 |
mark4 n00b

Joined: 26 Feb 2011 Posts: 73
|
Posted: Tue Mar 18, 2025 4:46 pm Post subject: |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23218
|
Posted: Tue Mar 18, 2025 5:11 pm Post subject: |
|
|
No, installkernel is not an alternative to genkernel. The installkernel package is used when installing kernels from any of several techniques. |
|
Back to top |
|
 |
mark4 n00b

Joined: 26 Feb 2011 Posts: 73
|
Posted: Tue Mar 18, 2025 6:39 pm Post subject: |
|
|
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 |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10754 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Mar 18, 2025 9:19 pm Post subject: |
|
|
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:- genkernel is almost deprecated at this point so don't expect a quick response.
- 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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23218
|
Posted: Tue Mar 18, 2025 10:09 pm Post subject: |
|
|
As a minor point: John R. Graham wrote: | - 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 |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10754 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Mar 19, 2025 1:34 am Post subject: |
|
|
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 |
|
 |
mark4 n00b

Joined: 26 Feb 2011 Posts: 73
|
Posted: Wed Mar 19, 2025 1:38 am Post subject: |
|
|
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 |
|
 |
sMueggli Guru

Joined: 03 Sep 2022 Posts: 568
|
Posted: Wed Mar 19, 2025 9:28 am Post subject: |
|
|
Why are you using a separate /boot-partition? In many cases it is not needed. |
|
Back to top |
|
 |
|