I just updated the Kernel to linux510 (5.10.15-1) and GPU driver to linux510-nvidia (460.39-9) and noticed the following errors:
Note: 5.9 was previously uninstalled using System Settings.
==> Building image from preset: /etc/mkinitcpio.d/linux59.preset: 'default'
-> -k /boot/vmlinuz-5.9-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.9-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.9-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux59.preset: 'fallback'
-> -k /boot/vmlinuz-5.9-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.9-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.9-x86_64'
Error: command failed to execute correctly
I see I still have the following presets:
❯ cd /etc/mkinitcpio.d
❯ lsa
total 36K
drwxr-xr-x 2 root root 4.0K Feb 10 10:24 .
drwxr-xr-x 121 root root 12K Feb 10 10:24 ..
-rw-r--r-- 1 root root 396 Jan 19 10:28 linux510.preset
-rw-r--r-- 1 root root 392 Jan 18 16:40 linux54.preset
-rw-r--r-- 1 root root 392 Jan 3 00:54 linux59.preset
-rw-r--r-- 1 root root 404 Jan 24 10:03 linux59-rt.preset.pacsave
Can I remove these two presets to address the error? Also, is there anything else I need to remove while I’m at it?
Assuming it’s safe to remove, can I run mkinitcpio -P
after removal and that’s that?