You are not logged in.

#1 2015-08-03 21:49:56

courageux
Member
Registered: 2015-07-15
Posts: 15

Upgrading kernel without a reboot possible in arch?

Hi,

I read that kernel 4.0 and higher was supposed to support upgrading the running kernel without a system reboot. Is there a way to use this feature in arch yet?

See here

Offline

#2 2015-08-03 22:29:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Upgrading kernel without a reboot possible in arch?

Did you check the wiki?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-08-03 22:35:11

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Upgrading kernel without a reboot possible in arch?

Not with arch kernels, but you can always build and livepatch your own custom kernel.

Also, you should understand it is really meant for fixing critical security bugs, not for complete kernel upgrades (I'm not sure if the latter would be even technically possible ever).

I don't know if there's any future plans to implement this in arch in the future though.

Offline

#4 2015-08-03 23:12:15

courageux
Member
Registered: 2015-07-15
Posts: 15

Re: Upgrading kernel without a reboot possible in arch?

Trilby wrote:

Did you check the wiki?

I was referring to using the kernel directly without ksplice.

Offline

#5 2015-08-03 23:12:50

courageux
Member
Registered: 2015-07-15
Posts: 15

Re: Upgrading kernel without a reboot possible in arch?

ooo wrote:

Not with arch kernels, but you can always build and livepatch your own custom kernel.

Also, you should understand it is really meant for fixing critical security bugs, not for complete kernel upgrades (I'm not sure if the latter would be even technically possible ever).

I don't know if there's any future plans to implement this in arch in the future though.

Ok, I'll look into that. I guess a suspend to disk, should update the kernel running in memory? Because the resume image is copied after the kernel loads on boot?

Last edited by courageux (2015-08-03 23:15:58)

Offline

#6 2015-08-03 23:27:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Upgrading kernel without a reboot possible in arch?

Oops.  Sorry, I misread the link in your initial post.  Sorry for the noise.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2015-08-03 23:58:24

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Upgrading kernel without a reboot possible in arch?

courageux wrote:

I guess a suspend to disk, should update the kernel running in memory? Because the resume image is copied after the kernel loads on boot?

Sorry I don't quite understand your question. Of course your kernel can't be upgraded while your system is suspended?

There's good explanation of the feature in kernelnewbies, and you can find more info from the merge commit

Offline

#8 2015-08-04 00:04:50

courageux
Member
Registered: 2015-07-15
Posts: 15

Re: Upgrading kernel without a reboot possible in arch?

ooo wrote:
courageux wrote:

I guess a suspend to disk, should update the kernel running in memory? Because the resume image is copied after the kernel loads on boot?

Sorry I don't quite understand your question. Of course your kernel can't be upgraded while your system is suspended?

There's good explanation of the feature in kernelnewbies, and you can find more info from the merge commit

When did I say it could be upgraded when the system is suspended?

What I meant is perhaps after a kernel upgrade (with pacman) and a suspend to disk (NOT RAM ... = hibernate). After a boot up (it seems to me ) that the kernel is loaded from the image and then the resume image is copied from swap to ram? If this is the case then one could hibernate and reboot instead of shutting down and booting their system?

Offline

#9 2015-08-05 23:58:07

Hydranix
Member
Registered: 2013-02-10
Posts: 56

Re: Upgrading kernel without a reboot possible in arch?

Possibly through a kexec?

Offline

Board footer

Powered by FluxBB