Dear Maintainer,
The recent import of the grub 2.14 sources broke tboot as it still makes
use of 'version_find_latest' in /etc/grub.d/20_linux_tboot:
$ grep -rw version_find_latest /etc/grub.d/
/etc/grub.d/20_linux_xen_tboot: current_xen=`version_find_latest $xen_list`
/etc/grub.d/20_linux_xen_tboot: current_tboot=`version_find_latest $tlist`
/etc/grub.d/20_linux_xen_tboot: linux=`version_find_latest $list`
/etc/grub.d/20_linux_tboot: current_tboot=`version_find_latest $tboot_list`
/etc/grub.d/20_linux_tboot: linux=`version_find_latest $list`
That helper was removed in commit 04d2a50f31c4 ("Revert "templates:
Reinstate unused version comparison functions with warning"").
As even the latest version of tboot isn't fixed wrt that GRUB2 change, I
suggest the easiest solution is to revert commit 04d2a50f31c4 in Debian.
This will make tboot's grub script work again and also re-add the
"version_test_numeric() is deprecated. Use version_sort() instead."
warning that, hopefully, makes tboot users care enough to get the matter
solved upstream.
Here is the error message that can be observed:
# apt autopurge
[...]
/etc/grub.d/20_linux_tboot: 1: version_find_latest: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.16.12+deb14+1-amd64 (--remove):
installed linux-image-6.16.12+deb14+1-amd64 package post-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
[...]
Thanks,
Mathias