Skip to content

Commit

Permalink
kbuild: deb-pkg: Do not install maint scripts for arch 'um'
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Nicolas Schier authored and masahir0y committed Dec 21, 2024
1 parent a34e92d commit 5495656
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5495656

Please sign in to comment.