diff options
author | Aaron Thompson <dev@aaront.org> | 2024-10-04 09:52:45 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-10-06 19:36:38 +0200 |
commit | 82cb44308951ad4ce7a8500b9e025d27d7fb3526 (patch) | |
tree | aabca3f6638e4ac0fac70fdbb7c197fb948dea83 /scripts/package | |
parent | kbuild: fix a typo dt_binding_schema -> dt_binding_schemas (diff) | |
download | linux-82cb44308951ad4ce7a8500b9e025d27d7fb3526.tar.xz linux-82cb44308951ad4ce7a8500b9e025d27d7fb3526.zip |
kbuild: deb-pkg: Remove blank first line from maint scripts
The blank line causes execve() to fail:
# strace ./postinst
execve("./postinst", ...) = -1 ENOEXEC (Exec format error)
strace: exec: Exec format error
+++ exited with 1 +++
However running the scripts via shell does work (at least with bash)
because the shell attempts to execute the file as a shell script when
execve() fails.
Fixes: b611daae5efc ("kbuild: deb-pkg: split image and debug objects staging out into functions")
Signed-off-by: Aaron Thompson <dev@aaront.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package')
-rwxr-xr-x | scripts/package/builddeb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index c1757db6aa8a..404587fc71fe 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -74,7 +74,6 @@ install_linux_image () { mkdir -p "${pdir}/DEBIAN" cat <<-EOF > "${pdir}/DEBIAN/${script}" - #!/bin/sh set -e |