Can confirm:
$ ls -l /usr/lib/modules/
total 28
drwxr-xr-x 2 root root 4096 Jun 24 09:05 6.12.28-1-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.12.61-1-MANJARO
drwxr-xr-x 2 root root 4096 Jun 16 16:32 6.14.6-2-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.17.11-1-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.18.0-1-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.6.119-1-MANJARO
drwxr-xr-x 2 root root 4096 Jun 24 09:06 6.6.90-1-MANJARO
$ mhwd-kernel -li
Currently running: 6.18.0-1-MANJARO (linux618)
The following kernels are installed in your system:
* linux612
* linux617
* linux618
* linux66
$ sudo mhwd-kernel -r linux66
checking dependencies...
[...]
Packages (3) linux66-6.6.119-1 linux66-headers-6.6.119-1 linux66-nvidia-570xx-570.207-4
Total Removed Size: 331.46 MiB
:: Do you want to remove these packages? [Y/n] y
[...]
$ ls -l /usr/lib/modules/
total 24
drwxr-xr-x 2 root root 4096 Jun 24 09:05 6.12.28-1-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.12.61-1-MANJARO
drwxr-xr-x 2 root root 4096 Jun 16 16:32 6.14.6-2-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.17.11-1-MANJARO
drwxr-xr-x 6 root root 4096 Dec 10 16:32 6.18.0-1-MANJARO
drwxr-xr-x 2 root root 4096 Jun 24 09:06 6.6.90-1-MANJARO
I had the same again today after installing the newest kernel released in testing. Install via pacman -Syu, and the modules are not cleaned.
/usr/lib/modules ls -la ✔
insgesamt 308
drwxr-xr-x 5 root root 4096 13. Dez 08:36 .
drwxr-xr-x 310 root root 294912 13. Dez 12:40 ..
drwxr-xr-x 6 root root 4096 13. Dez 12:40 6.12.62-1-MANJARO
drwxr-xr-x 6 root root 4096 13. Dez 12:40 6.18.0-1-MANJARO
drwxr-xr-x 6 root root 4096 13. Dez 12:40 6.18.1-1-MANJARO
/usr/lib/modules
During the same installation I got an error regarding the evdi-dkms installation, that failed. I needed to reinstall evdi-dkms manually. Not a big deal (but this again made clear that is is so important NOT to install anything without looking what is happening … if someone would install, go to e.g. the loo, reboot without looking what happened in the installation … that would fail)
Could there be a possibility that this relates, e.g. that the cleanup of the modules does not work if some dkms modules are installed, and probably fail during installation?
This is only related to one tiny file left behind that it forgot to clean up. Not a problem, just a tiny housekeeping issue. (Practically an empty directory.)