deb-pkg: add a hook argument to match debian hooks parameters
authorAnisse Astier <anisse@astier.eu>
Wed, 3 Jul 2013 14:02:06 +0000 (16:02 +0200)
committerMichal Marek <mmarek@suse.cz>
Wed, 24 Jul 2013 13:50:24 +0000 (15:50 +0200)
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>
scripts/package/builddeb

index aebc66e056f4040987d362220183e48f3c45227e..de899238f34a6c8ebcbb26234d7953e107986a9c 100644 (file)
@@ -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"