]> Git Repo - J-linux.git/commitdiff
kbuild: deb-pkg: Do not install maint scripts for arch 'um'
authorNicolas Schier <[email protected]>
Thu, 12 Dec 2024 13:05:29 +0000 (14:05 +0100)
committerMasahiro Yamada <[email protected]>
Sat, 21 Dec 2024 03:42:10 +0000 (12:42 +0900)
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 <[email protected]>
Signed-off-by: Nicolas Schier <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
scripts/package/builddeb

index fb686fd3266f01207f422f0988a857c915160c27..ad7aba0f268e1ff3b6f4d723d8284b9f8fba8768 100755 (executable)
@@ -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.
This page took 0.049991 seconds and 4 git commands to generate.