You are not logged in.
I noticed a strange problem, last boot I got an error about a missing initramfs-linux.img from grub, so I booted my backup kernel and ran mkinitcpio -k kernel -g /boot/initramfs-linux.img and was able to successfully boot back into my system. Now I just ran pacman -Syu and took a kernel update, images were generated for my backup LTS kernel (which I'm not actively currently using), but not for the main kernel that I am using; furthermore, the initramfs-linux.img had disappeared so I had to regenerate that manually before rebooting.
I've had Arch for 14 months and everything has been great. I'm not sure which configuration file I need to change to get those images built at the same time the LTS images are built during the update process
Thanks
Last edited by covid19 (2021-06-19 19:07:27)
Offline
lsblk -fIf there's a /boot partition, umount it and check the contents of the remaining /boot path
Offline
I figured it out, no idea how but the preset file in /etc/mkinitcpio.d/linux.preset was empty ![]()
so I ran
# cp /etc/mkinitcpio.d/linux-lts.preset /etc/mkinitcpio.d/linux.presetand then edited anywhere I saw linux-lts to linux
it now looks like:
# mkinitcpio preset file for the 'linux' package
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""
#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback.img"
fallback_options="-S autodetect"No idea why it was blank to begin with, this systems been going stable for over a year. Glad I have that backup kernel as this made my system unbootable. Yes I could have fixed it with the USB and mounting my install, but so much easier booting a backup kernel
Offline