Suggestion for suppression of pacsave files on mhwd-kernel -r linuxYZ or mhwd-kernel -i linuxYZ rmc

Can you explain in which situations that would be bad? I don’t see why it would be bad.

  1. It checks installed kernel packages and exclude them from the install-able packages.
  2. Now it checks only for linux versions, which are not installed.

No, I don’t think so. As I have resolved some issues like this, this garbage remains on systems that have stable kernels installed but removed from the repo. The kernel module folder is removed, but the images etc are not. That has to be done manually then.

I just thought a little further.

And as you see:

Your file is included.

It looks like this:

$ ./mhwd-kernel -c                
Not installed Kernels: 4.19 5.17 5.18 5.4 5.18-rt
Search for garbage...
/etc/mkinitcpio.d/linux419.preset.pacsave
/etc/mkinitcpio.d/linux54.preset.pacsave
Delete garbage? [ENTER/CTRL+C]^C
$ ./mhwd-kernel -li                                                                          
Currently running: 5.15.43-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux515-rt
1 Like