No mkinitcpio preset present
My laptop lost battery during an update, so the linux kernel got truncated. After arch-chroot
ing into it and reinstalling linux
, it’s OK, but /boot/initramfs-linux.img
(and the fallback) are empty. Also, /etc/mkinitcpio.d/linux.preset
is empty. How can I fix this, and how can I generate a preset?
ls /etc/mkinitcpio.d/
returns nothing
Regenerate a new initramfs-linux.img
accordingly to the archlinux wiki:
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img -k 5.5.7-arch1-1
use ls /usr/lib/modules
to get the available kernel.
Had this recently. My solution was to chroot into the system from an Arch live system. Delete the empty linux.preset
in /etc/mkinitcpio.d/
and then run pacman -S linux
.
This regenerated the linux.preset
and the initramfs
was rebuild. After that Arch booted as usual.