You are not logged in.

#1 2021-02-01 11:37:39

GscheadaHamme
Member
Registered: 2021-01-12
Posts: 8

[Solved] mkinitcpio -P failure: kernel image does not exist

So when trying to regenerate the initramfs file to enable hibernation according to the guide, I get the output:

# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux'
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux'

However, boot is definitively mounted:

# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0 238.5G  0 disk
|-nvme0n1p1 259:1    0   512M  0 part /boot
|-nvme0n1p2 259:2    0  11.5G  0 part [SWAP]
|-nvme0n1p3 259:3    0    25G  0 part /
`-nvme0n1p4 259:4    0 201.5G  0 part /home
# cat /etc/fstab
...
# /dev/nvme0n1p1
UUID=8F20-DE77      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2
...
# mount
...
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
...

And Linux is installed:

# pacman -Qs ^linux\(-lts\)?$
local/linux 5.10.11.arch1-1
    The Linux kernel and modules

What am I missing here?

Many thanks in advance.

Last edited by GscheadaHamme (2021-02-01 16:03:12)

Offline

#2 2021-02-01 12:10:41

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved] mkinitcpio -P failure: kernel image does not exist

Is the file from the error message in /boot? I mean, do you see it when you run:

ls /boot

?

Offline

#3 2021-02-01 12:29:05

GscheadaHamme
Member
Registered: 2021-01-12
Posts: 8

Re: [Solved] mkinitcpio -P failure: kernel image does not exist

Well, seems like forgot the obvious:

ls /boot/
EFI  grub  intel-ucode.img

Since it's not there: how can it be generated/found?

Offline

#4 2021-02-01 14:21:42

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved] mkinitcpio -P failure: kernel image does not exist

The file should be put into /boot when you install "linux", try reinstalling the package and then check again if the file is there:

sudo pacman -S linux

Offline

#5 2021-02-01 15:38:10

GscheadaHamme
Member
Registered: 2021-01-12
Posts: 8

Re: [Solved] mkinitcpio -P failure: kernel image does not exist

Perfekt, works.
Thank you smile

Offline

Board footer

Powered by FluxBB