diff options
author | Nicolas Schier <nicolas@fjasle.eu> | 2024-12-12 14:05:29 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-12-21 04:42:10 +0100 |
commit | 54956567a055345d17438f08c895c68aff3f4cf2 (patch) | |
tree | 11122cd1e67eff4cc7a6ff956772cbc59494ecce /scripts/package/builddeb | |
parent | kbuild: deb-pkg: add debarch for ARCH=um (diff) | |
download | linux-54956567a055345d17438f08c895c68aff3f4cf2.tar.xz linux-54956567a055345d17438f08c895c68aff3f4cf2.zip |
kbuild: deb-pkg: Do not install maint scripts for arch 'um'
Stop installing Debian maintainer scripts when building a
user-mode-linux Debian package.
Debian maintainer scripts are used for e.g. requesting rebuilds of
initrd, rebuilding DKMS modules and updating of grub configuration. As
all of this is not relevant for UML but also may lead to failures while
processing the kernel hooks, do no more install maintainer scripts for
the UML package.
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to '')
-rwxr-xr-x | scripts/package/builddeb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index fb686fd3266f..ad7aba0f268e 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -63,6 +63,12 @@ install_linux_image () { esac cp "$(${MAKE} -s -f ${srctree}/Makefile image_name)" "${pdir}/${installed_image_path}" + if [ "${ARCH}" != um ]; then + install_maint_scripts "${pdir}" + fi +} + +install_maint_scripts () { # Install the maintainer scripts # Note: hook scripts under /etc/kernel are also executed by official Debian # kernel packages, as well as kernel packages built using make-kpkg. |