Neil,

On Thursday, 2021-07-01 15:28:51 +0100, you wrote:

> On Thu, 1 Jul 2021 13:16:29 +0200, Dr Rainer Woitok wrote:
> 
> > Same here.   And whenever  I configure  a new kernel  my kernel managing
> > script makes sure both,  the kernel I'm currenty running on  and the one
> > just configured are in "@world".  That way "emerge --depclean" will nev-
> > er remove a kernel package.
> 
> You can also do that with sets. Add this to sets.conf
> 
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src
> 
> add emerge -n @kernels once. Then depclean will never touch a kernel
> source package.

Nice trick, thank you :-).   This would slightly simplify my kernel man-
aging script.

Sincerely,
  Rainer

Reply via email to