#[SOLVED] mkinitcpio `not a valid kernel module directory`, appears to be using outdated kernel ver

28 messages · Page 1 of 1 (latest)

lilac swallow
#

Hi, I am trying to run mkinitcpio to generate a new initramfs (some kernel module issues that I ran into and am trying to fix), but I always get the output ==> ERROR: '/lib/modules/6.0.8-arch1-1' is not a valid kernel module directory. It's obviously an issue with that file not existing, as this is the contents of my /lib/modules/ directory ```
5.19.13-arch1-1
6.0.1-arch2-1
6.0.2-arch1-1
6.0.5-arch1-1
6.0.6-arch1-1
6.0.9-arch1-1
6.0.9-zen1-1-zen

however, I have no idea how to tell `mkinitcpio` to look at a newer kernel version, even after looking at the man page.
pallid flame
#

there shouldn't be that many kernel module folders

lilac swallow
bright spade
#

@lilac swallow does uname -r say the right thing

lilac swallow
#

I mean I've rebooted by now, it says 6.0.9-arch1-1 now, and it looks like d4l2loopback or whatever it's called is working fine now

#

so maybe I updated the kernel without noticing? ¯_(ツ)_/¯

lilac swallow
#

Well I can run things like obs camera, yes

bright spade
lilac swallow
#

I can't check

bright spade
#

does it show a initramfs-6.0.9_1.img

lilac swallow
#

amd-ucode.img EFI grub initramfs-linux-fallback.img initramfs-linux.img initramfs-linux-zen-fallback.img initramfs-linux-zen.img vmlinuz-linux vmlinuz-linux-zen

#

I didn't run the command yet

#

do you want me to run the command

bright spade
#

oh right

bright spade
lilac swallow
#

yes

#

I haven't bothered cause it wasn't a problem for me anymore since I got what I was trying to use mkinitcpio for working

bright spade
#

ok

#

@lilac swallow sudo dmesg -T | grep "initrd"

lilac swallow
#

[Tue Nov 22 18:38:04 2022] Freeing initrd memory: 9428K

bright spade
lilac swallow
#

yes

bright spade
#

great, then your initramfs is fine

#

... close

foggy wolfBOT
#

#9639 📣 If your issue is solved, please prepend [SOLVED] to the beginning of this thread's title. Then, if possible, archive the thread.