The officially official Devuan Forum!

You are not logged in.

#1 2017-12-12 16:48:16

tlathm
Member
Registered: 2017-11-25
Posts: 24

Question on kernel upgrades

I have Jessie with the linux-image-amd64 meta package installed. Most of what I read about kernel upgrades seems to be around doing dist-upgrade. I'm a little confused as far as ongoing kernel upgrades that might occur within the same major version.

If (and I assume there are) occasional kernel upgrades available for Jessie, do they just get installed via api-get update and apt-get upgrade? If so, does it leave the existing kernel installed etc. Also...and this is probably related...does it automatically run grub-update if I'm using grub?

Thanks!
Tom

Offline

#2 2017-12-12 22:54:53

greenjeans
Member
Registered: 2017-04-07
Posts: 394
Website

Re: Question on kernel upgrades

tlathm wrote:

I have Jessie with the linux-image-amd64 meta package installed. Most of what I read about kernel upgrades seems to be around doing dist-upgrade. I'm a little confused as far as ongoing kernel upgrades that might occur within the same major version.

If (and I assume there are) occasional kernel upgrades available for Jessie, do they just get installed via api-get update and apt-get upgrade? If so, does it leave the existing kernel installed etc. Also...and this is probably related...does it automatically run grub-update if I'm using grub?

Thanks!
Tom

Hi Tom, when using jessie (current stable) you will get occasional kernel upgrades within the same family (3.16 LTS).  If installing through Synaptic you can just mark it as a regular upgrade, it will install the new kernel (removing the old one) and will run update-grub (at least it did last time I checked). In other words it works the same as other upgradeable packages within the same major version (i.e. jessie/Devuan 1.0).

I have done quite a few in the last year and they all went very smoothly, no issues at all.

I don't use apt-get, but looks like it should work the same unless there are changing dependencies with new version (can't see that happening with the kernel but possible I guess)? In which case you might need to use apt-get dist-upgrade.


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#3 2017-12-13 20:14:46

tlathm
Member
Registered: 2017-11-25
Posts: 24

Re: Question on kernel upgrades

That's what I figured. I don't have Synaptic as this is a headless server. Thanks!

Tom

Offline

#4 2017-12-13 20:43:22

sgage
Member
Registered: 2016-12-01
Posts: 76

Re: Question on kernel upgrades

I believe it saves one older kernel - at least that's what it does for me. When a new kernel is installed, it will then save the current kernel and delete the previous saved kernel. So you always have one fallback.

- sgage

tlathm wrote:

That's what I figured. I don't have Synaptic as this is a headless server. Thanks!

Tom

Offline

#5 2017-12-13 22:16:51

golinux
Administrator
Registered: 2016-11-25
Posts: 730

Re: Question on kernel upgrades

My jessie does not save older kernels - at least they're not listed at boot.  I would like to know what grub file needs to be tweaked to tell grub to save 2 kernels.  Used to be easy to do that with the old grub.   This is not progress . . .

Online

#6 2017-12-14 10:07:03

Nili
Member
From: $HOME/♫♪
Registered: 2016-12-01
Posts: 24
Website

Re: Question on kernel upgrades

#find how many linux images are installed on the system.

dpkg -l | grep linux-image

I use it for many years 3.16 series. Very pleased and I say to go up to end of LTS with it.

ii  linux-image-3.16.0-4-686-pae  3.16.51-2     i386    Linux 3.16 for modern PCs

 Devuan |  Herbstluftwm |  Pale Moon
 #MM | #乃木坂46 | #A.K.B. Forty-eight (Oshi / Oshima Yuko)

Offline

#7 2017-12-14 12:02:11

sgage
Member
Registered: 2016-12-01
Posts: 76

Re: Question on kernel upgrades

golinux wrote:

My jessie does not save older kernels - at least they're not listed at boot.  I would like to know what grub file needs to be tweaked to tell grub to save 2 kernels.  Used to be easy to do that with the old grub.   This is not progress . . .

I think I spoke too soon. I'm running ascii, upgraded from jessie. The upgrade left jessie's 3.16 kernel when it upgraded to 4.9, and I can boot either one from grub. Routine kernel updates don't work that way, I guess.

I agree - old grub was so much more understandable...

Last edited by sgage (2017-12-14 12:02:42)

Offline

#8 2017-12-14 14:47:53

tlathm
Member
Registered: 2017-11-25
Posts: 24

Re: Question on kernel upgrades

sgage wrote:

I agree - old grub was so much more understandable...

Totally. Under Gentoo I moved to Syslinux when I saw how grub 2 worked. Not a fan.

Offline

Board footer