You are not logged in.

#1 2018-06-18 18:17:28

Canna
Member
Registered: 2018-06-18
Posts: 2

[ SOLVED ] Kernel version is different from uname and pacman

Hello,

I just did a full system upgrade on my archlinux (uefi + dualboot with win10)

And i have an issue, the kernel version from

uname -r
Linux archlinux 4.16.13-2-ARCH

is different than

pacman -Qi linux
Nom    : Linux
Version: 4.17.2-1

My /boot is well set in the fstab and was mount during the full system upgrade (pacman -Syu)

fstab
UUID=XXXXXXXXXXXXXXXX       /boot      ext4      rw,relatime,data=ordered    0 2
ls -l /boot
efi (empty)
initramfs-fallback.img
initramfs-linux.img
initramfs-linux-its-fallback.img
initramfs-linux-its.img
vmlinuz-linux
vmlinuz-linux-lts

( i have tried to intsall the lts kernel too pacman -S linux-lts)

Do you have any idea? Maybe it's related to the UEFI?

Kind regards,

C

Last edited by Canna (2018-06-18 19:23:49)

Offline

#2 2018-06-18 18:23:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: [ SOLVED ] Kernel version is different from uname and pacman

Probably your boot partition was not mounted when you did the upgrade of the kernel.  Mount the boot partition on /boot and reinstall the linux package.  Fix your /etc/fstab to ensure it is mounted for future updates.  Unmount the boot partition and look in /boot; there are probably a kernel file and and initrd file in there that do not belong.  Unless you are not using a boot partition, the /boot directory, when not used as a mount point, should be empty.  Updating the kernel with nothing mounted on /boot causes the flies to appear.

Edit: I was posting whilst you were editing.  Are you sure it was mounted?  unmount it and look in /boot;  see if it is empty.
Edit 2:  Another possibility; the UEFI from which you are booting is not what you think it is; perhaps you are mounting the wrong volume?

Last edited by ewaller (2018-06-18 18:26:08)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#3 2018-06-18 18:25:33

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [ SOLVED ] Kernel version is different from uname and pacman

Why is /boot ext4 on a UEFI booting system?

Offline

#4 2018-06-18 18:26:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: [ SOLVED ] Kernel version is different from uname and pacman

Oh! Nice catch.  Kind of meshes with my second edit.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#5 2018-06-18 18:40:47

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [ SOLVED ] Kernel version is different from uname and pacman

/boot can be anything you want, as long as the ESP is fat, for example mounted as /boot/efi.

EDIT: grep some mkinitcpio out of /var/log/pacman.log and see if the image has been built. Try rebuilding it (wiki:mkinitcpio) and see what happens.

Last edited by Awebb (2018-06-18 18:43:32)

Offline

#6 2018-06-18 19:23:31

Canna
Member
Registered: 2018-06-18
Posts: 2

Re: [ SOLVED ] Kernel version is different from uname and pacman

Thanks a lot ! Your replies was so fast.. sorry for the delay i have to restart my computer to archlinux for each commad/check hmm

ewaller wrote:

Edit 2:  Another possibility; the UEFI from which you are booting is not what you think it is; perhaps you are mounting the wrong volume?

You were right

Awebb wrote:

EDIT: grep some mkinitcpio out of /var/log/pacman.log and see if the image has been built. Try rebuilding it (wiki:mkinitcpio) and see what happens.

I have launched the mkinicpio too and it resolv my issue,

Kind Regards,

C,

Offline

Board footer

Powered by FluxBB