Hi

I suppose you could install linux-image-amd64/bookworm-backports, and then
for stable create:

/etc/cron.daily/linux-stable

with permissions 755, and contents:

apt-get -fy install $(apt-cache depends
linux-image-amd64/bookworm-security|grep Depends|sed \'s/.*ends:\ //\'
| tr '\n' ' ')

Your system probably won't delete older unused stable kernels
automatically then.

Regards,
Jan

Resources
https://askubuntu.com/questions/74478/how-to-install-only-the-dependencies-of-a-package


On Sun, 2 Jun 2024 at 06:35, Michael Tokarev <[email protected]> wrote:

> 02.06.2024 01:40, Johan Kröckel wrote:
> > My use case is:
> >
> > Run the up-to-date backports kernel and always have the up-to-date
> stable kernel as fallback installed, since the backports kernel sometimes
> changes
> > drastically and is not as tested as the stable kernel. The thing is:
> it's nice to have the new features of the bpo kernel but in the end, I need
> to
> > work: run bpo-kernel -> nice -> upgrade with problems -> doesn't matter,
> reboot, stable kernel -> keep on working.
>
> So if there's an issue with bpo kernel (bpo is what you usually use), you
> switch back to
> the previously running bpo kernel which worked.  Problem solved.
>
> > I don't think the "you can run only one kernel, so why have more than
> one installed?" argument does not hold, because I think it's good practice
> to
> > keep the last kernel installed as a fallback as well. Yes, I run only
> one, but I have two installed anyway, so why not four?
>
> Apt only keeps 2.
>
> /mjt
>
>

Reply via email to