Skip to content

Commit c95182b

Browse files
anissemichal42
authored andcommitted
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>
1 parent 9de7017 commit c95182b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/package/builddeb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ set -e
184184
# Pass maintainer script parameters to hook scripts
185185
export DEB_MAINT_PARAMS="\$*"
186186
187-
test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
187+
test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d
188188
exit 0
189189
EOF
190190
chmod 755 "$tmpdir/DEBIAN/$script"

0 commit comments

Comments
 (0)