On 25-07-17, Greg Wooledge wrote: > On Tue, Jul 25, 2017 at 09:41:24AM +0200, Dejan Jocic wrote: > > When you upgrade to Jessie, it will install new kernel automatically. > > However, it should not remove your Wheezy kernel, because upgrading > > kernels always leaves one old one there, in case that you can not boot > > into your new kernel for some reason. You can then mark that kernel via > > grub options as one you would like to boot in. You can do it during boot > > in grub, or by setting it as default in /etc/default/grub. > > All true. > > > You will also > > have to use apt-mark to put that kernel on hold, to prevent removing it > > on future updates, or to do some apt pinning. > > False. The kernel will simply sit there forever, unless you take some > explicit action to remove it. No holds or pinning or other wrestling > required. >
That is not true, if you use autoremove. Only 2 last kernels will be kept. This is upgrade from Jessie here. I have 4.9.0.2 and 4.9.0.3 kernels. Jessie kernel is long gone with autoremove.