[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: issue with purging an old kernel



On 2022-06-21 12:09:00 -0600, D. R. Evans wrote:
> DdB wrote on 6/20/22 10:07:
> > Since i am running dozens of VM's, i can say:
> > Me2 am running into this regularly, when i am trying to purge old
> > kernels. I am seeing this so frequently, that i even wrote a script
> > (meant to be run inside the VM's) to clean up the mess, some apt-scripts
> > happen to leave behind.
> 
> It's comforting to know that this seems to be a relatively common occurrence
> (although this is the first time I've run into it, and I've been running
> debian for maybe seven or eight years at this point). As far as I know I
> have only official debian stable packages on the system, so it has the
> flavour of a minor packaging bug somewhere. Anyway, I'm not going to worry
> about it, given that you see it so often. I have cleared out the offending
> directory and moved on.

Not necessarily a bug. There are packages whose goal is to build
modules. While the source is tracked by the packaging system,
what is built isn't.

It could still be a bug in some /etc/kernel/prerm.d script.
Or you could write a script there to remove empty directories
for the kernel being removed.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: