Commit 241ad11f authored by maximilian attems's avatar maximilian attems Committed by Sam Ravnborg
Browse files

kbuild, deb-pkg: fix install scripts for posix sh

bash versus dash and posh disagree on expanding $@ within double quotes:
export x="$@"
see for details
just use the arglist with $*.

dpkg: error processing linux-image-2.6.31-rc1_2.6.31-rc1-18_i386.deb (--install):
 subprocess pre-installation script returned error exit status 2
export: 6: 2.6.31-rc1-18: bad variable name

seen on Ubuntu as there dash is the default sh,
versus bash on Debian.
Reported-by: default avatarPauli <>
Cc: Frans Pop <>
Signed-off-by: default avatarmaximilian attems <>
Acked-By: default avatarAndres Salomon <>
parent 4b0a8404
......@@ -89,7 +89,7 @@ for script in postinst postrm preinst prerm ; do
set -e
# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="\$@"
export DEB_MAINT_PARAMS="\$*"
test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment