Update detects leftovers from removed kernel

Each time I update I see an error/warning that says something similar to:

“specified kernel not found vmlinuz6.0…”

However 6.0 is not even installed, and was removed quite a length ago.

I am currently running 6.14.0_rt3-2
and have the previous 1 kernel left installed for emergency purposes which is 6.13_rt5_4

I think perhaps it is detecting something leftover from a previously removed kernel, that should have been removed when the kernel was removed. (just a guess)

So far this error has not produced any negative results, other than displaying this error/warning each update.

Is there a way to rectify this? Should I even worry about it?

What is the output from

ls /etc/mkinitcpio.d
linux515.preset.pacsave     linux519-rt.preset.pacsave  linux613-rt.preset  linux61.preset.pacsave     linux67-rt.preset.pacsave
linux515-rt.preset.pacsave  linux60-rt.preset           linux614-rt.preset  linux64-rt.preset.pacsave

With a confidence level of about 85%, I would recommend

sudo mv linux60-rt.preset{,.pacsave}

I believe that it should have been done automatically when linux60-rt was removed, but for whatever reason…

Should I rename the files for all the but current and previous kernels? I see a lot of other old ones in there also.

All of the other old ones already have .pacsave appended to them, do they not?

Yes, they do. These files are no longer required, correct?
So I would like to delete them after assuring they are not needed, and being able to boot. Is there any reason to keep them? What I did was tar.gz them all for backup and remove all but the current and previous. Have not reboot yet. Does this seem sound?

See Yochanan’s advice from a few years back:

3 Likes

Reboot successful.
I won’t know for sure if the error/warning message is gone until next update.
Thank you!

Make a sudo mkinitcpio -P and you will see.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.