Comment 3 for bug 399368

Revision history for this message
Nelson Elhage (nelhage) wrote : Re: [Bug 399368] Re: dbus should not require a reboot on every upgrade

> This also wouldn't work *across* releases, e.g. if you update to a minor
> release - how would you know that you actually updated across a major
> release.

The postinst script gets the previously-installed version as an
argument, so you can conditionalize on that. The postinst would need
to contain logic to the effect of

if $PREV_VERSION < [Last important release]; then
   notify-reboot-required
fi

Which would only need to be updated for release that were deemed
"important" enough to request a reboot.

The 'initscripts' and 'ifupdown' packages contain similar logic to
request a reboot only on upgrades from particular old versions.