Darac Marjal wrote:
> I'm not sure when the functionality was added (disclaimer: I run Sid,
> but have had this for quite a while now), but there is now a
> distribution-lead way of telling the user when a reboot is required.
> When a package such as linux-base is updated, the postinstall script
> touches /var/run/reboot-required and appends its name (i.e.
> 'linux-base') to /var/run/reboot-required.pkgs.

That functionality is in the update-notifier-common package, a
dependency of update-notifier and eventually a dependency of
update-manager-gnome and as such is normally installed with a GNOME
desktop installation to put an icon in the system tray.

Your suggestion is a good one but update-notifier-common isn't always
installed.  For example if you have a headless server then a full
desktop session manager isn't needed.  I hate to be a rainy day but
using the update-notifier isn't going to be as reliable as
crosschecking the running kernel with /proc/version.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to