Here's a small enchancement request to grubby to allow removing entries by
their title. It's useful to me at least :) Patch will follow shortly...
Created attachment 40907 [details]
adds --remove-title option grubby
This patch missed a couple of things:
1) Some of the command line error checking wouldn't be correct anymore
2) You could still set the default image to the one that was just removed!
#2 is the hard one of these to fix.
If you like, rework your patch (follow the checks for oldKernelImage for
hints) and resubmit. I'm not sure how generally useful this feature is though,
so please tell me why you think it's valuable as well or I probably won't
apply it anyway (yes, I could be convinced it is w/o too much effort).
Thanks for the feedback, I'll try to get those fixed one of these days (and
since submitting this I found out the patch has other problems as well like only
looking at the first word of the title).
The reason for this feature is a cornercase (but important one for us) where we
set up a "mini root" partition inside /boot and encrypt the rest of the disk
using various scripts etc from there -> the entry to boot to the miniroot has
the same kernel but different parameters -> it can't be removed by other than
title or manually parsing through grub.conf. I agree it's not probably very
usefull under "normal" circumstances, people who fiddle with their
boot-parameters tend to do so manually and not through grubby.
Based on that explanation do you think you'd apply the patch if I fix the issues
with it - just so I wont bother you unnecessarily with it again? :)