Linux58 bits of config left over after removal

I am running 5.10 and 5.8 is no longer installed however, when doing updates I get.

==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: ‘default’
→ -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64.img
==> ERROR: ‘/lib/modules/5.8.18-1-MANJARO’ is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: ‘fallback’
→ -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64-fallback.img -S autodetect
==> ERROR: ‘/lib/modules/5.8.18-1-MANJARO’ is not a valid kernel module directory

I would like to know how to remove these messages, and potential errors.

I checked and only 5.10 is installed.

mhwd-kernel -li
Currently running: 5.10.15-1-MANJARO (linux510)
The following kernels are installed in your system:

  • linux510

I also checked to see if there was anything from 5.8 hanging around.
sudo pacman -R linux58
error: target not found: linux58
sudo pacman -R linux58-headers
error: target not found: linux58-headers
sudo pacman -R linux58-extramodules
error: target not found: linux58-extramodules

Thanks
Ronald

sudo rm /etc/mkinitcpio.d/linux58.preset
4 Likes

Thanks,

The other old kernels were in there renamed to pacsave.

$ ls /etc/mkinitcpio.d/
linux510.preset
linux56.preset.pacsave
linux58.preset
linux59.preset.pacsave

Regards
Ronald

check also in /usr/lib/modules
and remove all 5.8 versions