From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bluehome.net ([96.66.250.149]:54828 "EHLO bluehome.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgEJEGT (ORCPT ); Sun, 10 May 2020 00:06:19 -0400 From: Jason Self Subject: [PATCH] make builddeb invoke calls to linux-update-symlink Date: Sat, 9 May 2020 21:06:16 -0700 Message-Id: <20200510040616.2207-1-j@jxself.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: linux-kbuild@vger.kernel.org Cc: j@jxself.org The official Debian kernel packages, in addition to running the scripts in /etc/kernel, also runs linux-update-symlinks via the postinst and postrm scripts. This maintains the /vmlinuz and /initrd.img (if it uses an initramfs) symlinks. This change makes the builddeb script generate those same calls. Signed-off-by: Jason Self --- scripts/package/builddeb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 6df3c9f8b2da..f34c11c63ede 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -195,6 +195,14 @@ export DEB_MAINT_PARAMS="\$*" # Tell initramfs builder whether it's wanted export INITRD=$(if_enabled_echo CONFIG_BLK_DEV_INITRD Yes No) +$(case $script in +postinst) + echo linux-update-symlinks install $version $installed_image_path + ;; +postrm) + echo linux-update-symlinks remove $version $installed_image_path +esac) + test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d exit 0 EOF -- 2.26.0