You are not logged in.

#1 2019-09-13 08:37:28

chrisdane
Member
Registered: 2019-07-17
Posts: 5

[Solved] uname and modprobe not update after sys upgrade pacman -Syyu

Hi

I do not understand why `uname` does not update after a system upgrade:

$ uname -r
5.2.11-arch1-1-ARCH
$ sudo pacman -Syyu
...
==> Starting build: 5.2.14-arch1-1-ARCH
...
$ uname -r
5.2.11-arch1-1-ARCH

Afaik, this is also the reason why I frequently have problems using a VPN connection after reboot, as the `tun` module is not found anymore:

$ journalctl -f
<start vpn connection>
NetworkManager[426]: modprobe: FATAL: Module tun not found in directory /lib/modules/5.2.11-arch1-1-ARCH

Arch still searches the `tun` module in the old module path with the kernel version `5.2.11`. However, this was replaced by the system upgrade with the new version `5.2.14`.

$ ls /lib/modules
5.2.14-arch1-1-ARCH/  extramodules-ARCH/

The current solution of this is to reboot. However, this is not mentioned on the pacman help page https://wiki.archlinux.org/index.php/Pacman which is why I ask for help here.

Thanks!

Last edited by chrisdane (2019-09-16 06:26:02)

Offline

#2 2019-09-13 08:40:18

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [Solved] uname and modprobe not update after sys upgrade pacman -Syyu

The running kernel is not changed on installation of a new kernel package.

Offline

#3 2019-09-13 08:46:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] uname and modprobe not update after sys upgrade pacman -Syyu

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2019-09-13 09:30:39

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved] uname and modprobe not update after sys upgrade pacman -Syyu

Make sure the *correct* thing is mounted to /boot before you -Syu and then reboot. Only way to upgrade the running kernel is to do a reboot.

Edit: And arch, unlike eg debian, does not keep the past 200 kernels installed when you update, therefor you won't find the modules for the old kernel after you update it.

Last edited by Mr.Elendig (2019-09-13 09:32:06)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2019-09-16 06:26:17

chrisdane
Member
Registered: 2019-07-17
Posts: 5

Re: [Solved] uname and modprobe not update after sys upgrade pacman -Syyu

Thank you, I think it would be helpful to find the information

Mr.Elendig wrote:

Only way to upgrade the running kernel is to do a reboot.

on the pacman page since various problems may be related to this (as described in my first post).

Offline

#6 2019-09-16 11:01:21

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] uname and modprobe not update after sys upgrade pacman -Syyu

Actually there are ways to upgrade a running kernel without rebooting, kexec is one of them.
Settting them up can be tricky though.

The simple & easy method is rebooting.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB