On Fri, 2018-07-20 at 16:10 -0700, Rick Stevens wrote:
> On 07/20/2018 03:35 PM, Samuel Sieb wrote:
> > On 07/16/2018 05:37 AM, Patrick O'Callaghan wrote:
> > > On Mon, 2018-07-16 at 06:26 -0400, Robert Moskowitz wrote:
> > > > On 07/16/2018 04:46 AM, Tom Yates wrote:
> > > > > On Sun, 15 Jul 2018, Robert Moskowitz wrote:
> > > > > 
> > > > > > Where do I set how many kernels to keep? If I have to fall back to
> > > > > > 17.3, I am going to have more than 3 available...
> > > > > 
> > > > > As I understand it, it's
> > > > > 
> > > > > installonly_limit=3
> > > > > 
> > > > > in /etc/yum.conf .
> > > > 
> > > > Thanks.  In F28 that is:  /etc/dnf/dnf.conf
> > > > 
> > > > Upped mine to 5 for now.
> > > 
> > > Ditto, though it would be nice to be able to mark a specific kernel as
> > > non-removable, rather than just relying on the window not overflowing.
> > 
> > As long as you are using the kernel you want to keep at the time you
> > upgrade, it will not get removed.  The next oldest one will be removed
> > instead.  Or you could just manually remove one of the other ones.
> 
> Supposedly, you could do something like:
> 
>       echo "kernel-4.17.3-200" >/etc/dnf/protected.d/kernel.conf
> 
> That's supposed to make sure dnf doesn't remove that package. Note that
> the "kernel" package is really a meta package that includes the
> kernel-core, kernel-modules and whatnot. I've never relied on this
> bit of dnf magic, but it's supposed to work.
> 
> I just tested it on a VM by "protecting" an old kernel and it seemed to
> work (that kernel wasn't removed, even though it was old). Your mileage
> may vary.

Interesting. I must look at that. It would be easy to work up into a
script.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/JIJ3GFC7WEHBNPNWTPAJ5LMMOBBUQVLV/

Reply via email to