[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best way to "pin" a kernel



On Thu 11 Sep 2014 at 08:27:46 -0700, Matt Ventura wrote:

> Quick question: I want Debian to not switch Grub2 to a new kernel when
> I update it, since I have a custom kernel on a particular machine.
> When I install a new kernel from apt, I don't want to immediately use
> it. What's the cleanest way of doing this?

The clean Debian way is

 dpkg-divert --add --rename /usr/sbin/update-grub
 ln -s /bin/true /usr/sbin/update-grub

I'll let you figure out how to reverse this, :)


Reply to: