Skip to content

Commit 5495656

Browse files
Nicolas Schiermasahir0y
authored andcommitted
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>
1 parent a34e92d commit 5495656

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/package/builddeb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ install_linux_image () {
6363
esac
6464
cp "$(${MAKE} -s -f ${srctree}/Makefile image_name)" "${pdir}/${installed_image_path}"
6565

66+
if [ "${ARCH}" != um ]; then
67+
install_maint_scripts "${pdir}"
68+
fi
69+
}
70+
71+
install_maint_scripts () {
6672
# Install the maintainer scripts
6773
# Note: hook scripts under /etc/kernel are also executed by official Debian
6874
# kernel packages, as well as kernel packages built using make-kpkg.

0 commit comments

Comments
 (0)