make builddeb invoke calls to linux-update-symlink
PATCH 1/1 make builddeb invoke calls to linux-update-symlink
The official Debian kernel packages, in addition to running the scripts in /etc/kernel, also runs linux-update-symlinks via the postinst script. This updates the /vmlinuz and /initrd.img (if it uses an initramfs) symlinks to point to the newly installed kernel. This update causes the builddeb script to do the same.
Signed-off-by Jason Self <[email protected]>
--- scripts/package/builddeb | 6 ++++++ 1 file changed, 6 insertions(+)
scripts/package/builddeb +6 -0
@@ -195,6 +195,12 @@ 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 + ;; +esac) + test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d exit 0 EOF
Signature · 1 line
2.26.0
My apologies. I realized this patch is incomplete. It should also be invoking linux-update-symlinks as part of postrm as well. I will re-send this. My apologies for the added noise.