Hi,

On Mon, Feb 12, 2024 at 11:49:18AM +0100, Klaus Singvogel wrote:
> in the past Debian Distributions there were two files in the system, when a 
> reboot was necessary:
>       /run/reboot-required  /run/reboot-required.pkgs

These files are created by the postinst script of individual Debian
packages. See for example the output of:

$ grep reboot-required /var/lib/dpkg/info/*

> I installed today a new kernel under Debian Bookworm, which
> requires a reboot, but this system lacks of both files. They
> aren't present.

None of my kernel-related packages have a postinst that creates
these files, so I'm not sure that installing a kernel package has
ever done that.

I think if you install the unattended-upgrades package it will
create those files after a kernel upgrade. I do not use that, which
is why I see nothing cresting those files. Perhaps you have that
installed elsewhere but not on this machine.

> How can I find out, if there is a system reboot necessary, in a
> similar way, as it was possible in the past?

Are you thinking of update-notifier-common which used to be installed
by default but was removed entirely in Debian jessie? An approximate
replacement for this is the package "reboot-notifier".

On the same theme there is also "needrestart" which will tell you
which daemons need to be restarted after libraries have been
upgraded.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to