Bug#1073998: linux: Purging linux-image-<version> doesn't clean up modules.weakdep file
Re: Diederik de Haas
> When removing or 'even' purging a linux-image-<version> package, it
> reports the following issue:
>
> rmdir: failed to remove '/lib/modules/<version>': Directory not empty
>
> The reason for that is that there's still a ``modules.weakdep`` file.
I just had the same problem on linux-image-6.6.15-amd64.
> It seems to me that at least with purging that file should be removed
> and subsequently the ``/lib/modules/<version>`` dir.
TBH, I'd even argue plain "remove" should remove the debris from the
modules directory, it's not like there's anything of value in the
modules.* files left behind.
Kernels are the only package that I'm actually purging, if "remove"
wouldn't leave /lib/modules/*/ behind, I wouldn't have to do that.
Christoph
Reply to: