You are not logged in.

#1 2017-10-20 19:26:20

fleixi
Member
Registered: 2017-10-20
Posts: 6

initramfs is searching in wrong folder for modules

I have a strance inssue. If i update my kernel the new initramfs is searching in the wrong folder for modules and doesnt boot if modules not match.

For example:

Kernel 4.12.12-1-ARCH Installed -> initramfs search in /lib/modules/4.12.12-1-ARCH
Update to Kernel 4.13.1-1-ARCH -> initramfs search in /lib/modules/4.12.12-1-ARCH
Update to Kernel 4.13.4-1-ARCH -> initramfs search in /lib/modules/4.12.12-1-ARCH
Update to Kernel 4.13.7-1-ARCH -> initramfs search in /lib/modules/4.12.12-1-ARCH

To boot i need to link 4.12.12 to the last kernelmodules. This is a temorarly workaround but really really annoing since i need to use a live-image if i have missed a update in pacman

It doesnt help to run mkinitcpio. I think its a config problem but i dont find any config pointing to kernel 4.12.12

Offline

#2 2017-10-20 19:35:25

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

Re: initramfs is searching in wrong folder for modules

Paste the output of `pacman -Q linux && uname -r`


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-20 19:36:19

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

Re: initramfs is searching in wrong folder for modules

Welcome to the arch linux forums fleixi.
What are the outputs of the following

$ pacman -Q linux
$ uname -a
$ file /boot/vmlinuz-linux

Edit:
beaten by jasonwryan

Last edited by loqs (2017-10-20 19:36:57)

Offline

#4 2017-10-20 19:37:35

fleixi
Member
Registered: 2017-10-20
Posts: 6

Re: initramfs is searching in wrong folder for modules

[fleixi@daisy opt]$ pacman -Q linux && uname -r
linux 4.13.7-1
4.13.4-1-ARCH

uname -a
Linux daisy 4.13.4-1-ARCH #1 SMP PREEMPT Thu Sep 28 08:39:52 CEST 2017 x86_64 GNU/Linux

file /boot/vmlinuz-linux
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 4.13.7-1-ARCH (builduser@tobias) #1 SMP PREEMPT Sat Oct 14 20:13:26 CEST 2017, RO-rootFS, swap_dev 0x5, Normal VGA

Edit:

Thanks for the really fast reply

Last edited by fleixi (2017-10-20 19:38:20)

Offline

#5 2017-10-20 19:40:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,869

Re: initramfs is searching in wrong folder for modules

You forgot to mount /boot before updating.
Mount it and re-install the linux package. Should do.

Online

Board footer

Powered by FluxBB