Skip to contentSkip to conversation

make builddeb invoke calls to linux-update-symlink

PATCH In review Jason Self 1 participant 2 messages May 10, 2020 Kbuild

lore
Share & tools
lore

Jason Self

author
#0 lore raw

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.

---
 scripts/package/builddeb | 6 ++++++
 1 file changed, 6 insertions(+)
scripts/package/builddeb +6 -0
index 6df3c9f8b2da..1932c54cc338 100755
@@ -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
author
#1 lore raw

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.