You are not logged in.

#1 2012-05-07 11:08:23

itti
Member
Registered: 2007-06-01
Posts: 77

Reboot after kernel update mandatory?

Hi,

I've just a small question regarding the Arch kernel update policy here... I've been using Arch for almost five years now but lately I noticed a change in how kernel updates work regarding the kernel modules. If I update my kernel via pacman as usual and don't reboot the affected Arch box immediately after such an upgrade no new kernel modules can be loaded by the then running (old) kernel. I guess that's because the "old" modules are gone after an update. That's a problem if I, for whatever reason, can not reboot immediately because for example newly attached usb devices or crypto stuff will not work until the new kernel gets loaded.

At the moment I'm using one of my Arch Boxes remotely via ssh and I've lost access to encrypted data because I accidentally updated the kernel before realizing that I won't have physical access to the computer in question over the course of the next days. The machine can not be rebooted remotely because it's partitions are LUKS encrypted.

So my question is how do fellow Archers handle such situations?

Offline

#2 2012-05-07 11:14:11

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Reboot after kernel update mandatory?

Ussually, after i update my kernel, xorg and drivers i reboot. I don't think you must reboot if you update xorg or drivers i think it is just enough to log in/out.
New kernel modules won't load because it is different path, i think.

Last edited by Shark (2012-05-07 11:14:26)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#3 2012-05-07 11:47:34

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Reboot after kernel update mandatory?

You could also consider using the "linux-lts" kernel (updated less frequently).


Burninate!

Offline

#4 2012-05-07 12:25:51

baronmax
Member
From: Missouri, USA
Registered: 2012-04-22
Posts: 37

Re: Reboot after kernel update mandatory?

Either that, or you could set it up so that it won't update the kernel unless you go specifically tell it to.  Put it in the pacman hold list (although I guess this could cause other problems down the road, if you let it go for too long w/o updating, but at least it would keep you from making the same mistake again).  I'm guessing you probably already know how to do that, but just in case someone else has the same issue, here's the link to how to hold back specific packages:

https://wiki.archlinux.org/index.php/Pa … g_upgraded

Good luck. smile


Intel 980x| 24GB RAM| Arch + Cinnamon/i3
Intel 2600K| 8GB RAM| Arch + Awesome/XFCE
Intel Q740| 6GB RAM| Arch + XFCE/Cinnamon
AMD Phenom x6 1090T| Ubuntu/Winblowz (gaming)

Offline

#5 2012-05-07 12:47:31

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Reboot after kernel update mandatory?

itti wrote:

Hi,

I've just a small question regarding the Arch kernel update policy here... I've been using Arch for almost five years now but lately I noticed a change in how kernel updates work regarding the kernel modules. If I update my kernel via pacman as usual and don't reboot the affected Arch box immediately after such an upgrade no new kernel modules can be loaded by the then running (old) kernel. I guess that's because the "old" modules are gone after an update.
[...]

As far as i know, there is no change in behaviour on arch's part. This is how it has always been, i.e., after a kernel upgrade, older modules can't be loaded.

Offline

#6 2012-05-07 13:16:23

itti
Member
Registered: 2007-06-01
Posts: 77

Re: Reboot after kernel update mandatory?

x33a wrote:

As far as i know, there is no change in behaviour on arch's part. This is how it has always been, i.e., after a kernel upgrade, older modules can't be loaded.

Are you certain? Maybe I haven't experienced this in the past then.

Offline

#7 2012-05-07 13:36:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Reboot after kernel update mandatory?

x33a is right, this is not an Arch issue, this is how the kernel works and have worked in the past.

Offline

#8 2012-05-07 15:07:40

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: Reboot after kernel update mandatory?

itti wrote:

At the moment I'm using one of my Arch Boxes remotely via ssh and I've lost access to encrypted data because I accidentally updated the kernel before realizing that I won't have physical access to the computer in question over the course of the next days. The machine can not be rebooted remotely because it's partitions are LUKS encrypted.

So my question is how do fellow Archers handle such situations?

sudo pacman -U /var/cache/pacman/pkg/linux-insert-version-here-x86_64.pkg.tar.xz

and load needed modules / mount your encrypted data / etc.

Offline

#9 2012-05-07 16:34:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Reboot after kernel update mandatory?

By "insert-version-here" do you mean the previous one?

Offline

Board footer

Powered by FluxBB