From: Anisse Astier Date: Wed, 3 Jul 2013 14:02:06 +0000 (+0200) Subject: deb-pkg: add a hook argument to match debian hooks parameters X-Git-Tag: firefly_0821_release~176^2~5389^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c95182bf9bd2df55739b187df8e972cb6cbee895;p=firefly-linux-kernel-4.4.55.git deb-pkg: add a hook argument to match debian hooks parameters We now provide the installed image path to the kernel hooks. This should allow the package to better integrate with debian hooks, and should not be too disruptive of hooks supporting only one parameter. Signed-off-by: Anisse Astier Reviewed-by: Ben Hutchings Acked-by: maximilian attems Signed-off-by: Michal Marek --- diff --git a/scripts/package/builddeb b/scripts/package/builddeb index aebc66e056f4..de899238f34a 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -184,7 +184,7 @@ set -e # Pass maintainer script parameters to hook scripts export DEB_MAINT_PARAMS="\$*" -test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d +test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d exit 0 EOF chmod 755 "$tmpdir/DEBIAN/$script"