[CentOS] hacking grub to control number of retained kernels.

Chris Murphy lists at colorremedies.com
Tue Sep 6 03:28:40 UTC 2016


On Fri, Sep 2, 2016, 8:52 PM Fred Smith <fredex at fcshome.stoneham.ma.us>
wrote:

> I've recently had this problem on two C7 systems, wherein when doing "yum
> update", I get a warning about /boot being low on space.
>
> both systems were installed using the partition size recommended by
> Anaconda, right now "df -h" shows /boot as 494M, with 79M free.
>
> I don't store unrelated crap on /boot, I assume that yum and/or grub
> will manage it for me. So, why, after over a year, is it running low
> on space on two different systems?
>
> Is there some location in /boot where junk piles up, but shouldn't,
> that I have to know about so I can clean it out?
>
> I see EIGHT initramfs files in /boot, two per kernel, same name but
> one has a kdump just before the .img suffix. do I need those for old
> kernels that I may or may not ever boot? (they're 30 to 50 MB each).
>

I think jump using /boot is a bad idea. I wonder if that's really
necessary? Anyway, long term solution from the anaconda list is increasing
/boot size to 1GiB.


Chris Murphy



More information about the CentOS mailing list