summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnisse Astier <anisse@astier.eu>2013-07-03 14:02:06 (GMT)
committerMichal Marek <mmarek@suse.cz>2013-07-24 13:50:24 (GMT)
commitc95182bf9bd2df55739b187df8e972cb6cbee895 (patch)
tree806deff24a449954a8134c1b419ccc194cb6ea0c /scripts
parent9de7017644ceda33bec10b6bd564c2bc8120c3fc (diff)
downloadlinux-c95182bf9bd2df55739b187df8e972cb6cbee895.tar.xz
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 <anisse@astier.eu> Reviewed-by: Ben Hutchings <ben@decadent.org.uk> Acked-by: maximilian attems <max@stro.at> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/package/builddeb2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index aebc66e..de89923 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"