Hi everyone, since deleting the old 5.10 and 5.4 LTS kernels I get the following messages during every major system upgrade:
[2024-02-28T09:19:20+0100] [ALPM-SCRIPTLET] ==> ERROR: Missing 5.4.85-1-MANJARO kernel modules tree for module nvidia/545.29.06.
[2024-02-28T09:20:49+0100] [ALPM] running '90-mkinitcpio-install.hook'...
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-5.10-x86_64'
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodet
ect
[2024-02-28T09:20:49+0100] [ALPM-SCRIPTLET] ==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-5.10-x86_64'
The system works as expected (I haven’t been using that kernel version in ages and the other kernels are updating just fine) but these messages are bugging me a little bit. Can anyone help me out? What would be the correct (and safe!) way of deleting the remainders of it?
I had already checked the installed packages and mhwd. The kernels are no longer shown there.
$ pacman -Qs linux54
$ mhwd-kernel -li
Currently running: 6.6.16-2-MANJARO (linux66)
The following kernels are installed in your system:
* linux515
* linux61
* linux66
Does what is attempted to build not just depend on what kernel headers are installed?
Only 515 and 66 are present in mkinitcpio.d here.
I think the kernel headers need to go - not sure though.
$ sudo dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/470.63.01/source/dkms.conf does not exist.
DKMS triggers only for 5.4 though, not for 5.10.
Edit: I just installed the new stable update and (as expected) the mkinitcpio section doesn’t run for 5.10 anymore after removing the .preset file. DKMS still runs for 5.4, only through 70-dkms-install.hook though: