Commit c95182bf authored by Anisse Astier's avatar Anisse Astier Committed by Michal Marek

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: default avatarAnisse Astier <>
Reviewed-by: default avatarBen Hutchings <>
Acked-by: default avatarmaximilian attems <>
Signed-off-by: default avatarMichal Marek <>
parent 9de70176
......@@ -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
chmod 755 "$tmpdir/DEBIAN/$script"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment