> 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.
> 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 reboot- required
notify-
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.