what one doesn't use grub? rgrds, cm.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, October 18, 2019 3:36 PM, Rich Freeman <ri...@gentoo.org> wrote: > On Fri, Oct 18, 2019 at 6:51 AM Alexander Openkowski > opn...@googlemail.com wrote: > > > I struggle with the naming of genkernel generated kernels for quite a while > > now and have written a small wapper script for this purpose... > > Somebody else shared the same problem and wrote a fairly complex > wrapper, and it is installed on most reader's systems already. It is > called grub-mkconfig. :) > > Hey, I get it. I used to do it exactly they way you do. However, the > kernel's make install, and the default behavior of both dracut and > genkernel, all use a consistent naming convention that is compatible > with grub-mkconfig, and I found that it was way easier to join them > then to try to beat them. As a bonus it is easier to keep a library > of past kernel versions in my boot menu. > > Now, what I could use is a script/tool that will clean up those > versions using some kind of rotation strategy like: > > 1. Keep the last 5 versions of the current series. > 2. Keep the last version of each of the last two longterm series. > 3. Keep one version of every stable series between the current and > the last longterm series. > > And this would apply to everything in /boot except config files, and > to modules as well. Config files outside this range would get moved > into some archive directory of old configs. > > -- > Rich >