Re: Standardizing use of kernel hook scripts
As there haven't been any replies to my mail yet, I'm just going to push
my patches for the deb-pkg target upstream.
The only really important issue is the passing of maintainer script
parameters as described below. I hope we can standardize on that.
Cheers,
FJP
Frans Pop wrote:
> Maintainer script parameters
> ----------------------------
> Currently maintainer script parameters are not passed on to the hook
> scripts, but IMO they could be very useful, for example: a bootloader
> update only needs to be run on package removal, but not on purge.
Other examples are:
- a test to prevent removal of the currently running kernel (while
allowing upgrades)
- a warning to reboot if the currently running kernel is upgraded
> Given the previous point I think adding them to the parameters passed to
> the hook scripts is not a good option. I therefore propose to instead
> export them in a standard environment parameter. Proposal:
> export DEB_MAINT_PARAMS="$@"
Reply to: