found 1017944 grub2/2.06-3~deb11u1
severity 1017944 serious
tags 1017944 patch

Dear Maintainers,

We can confirm that this bug affects all pv and pvh domUs that use pvgrub.
The commit responsible is 20239c28 "Bump debhelper from old 10 to 13." [1]
The relevant change in debhelper came with version v11: "The dh_strip and dh_shlibdeps tools no longer uses filename patterns to determine which files to process. Instead, they open the file and look for an ELF header to determine if a given file is an shared object or an ELF executable."
By choosing debhelper 13, this led to pv grub getting stripped.
A simple override to dh_strip mitigates the issue.

We assume that testing and unstable are affected as well but we do not have systems to test this.

Cheers,
Valentin

[1] https://salsa.debian.org/grub-team/grub/-/commit/20239c28e1e9ca3eba993e7702f5cb4da81dcf95
--- a/debian/rules	2022-09-06 15:44:06.183081104 +0200
+++ b/debian/rules	2022-09-06 15:44:12.878341465 +0200
@@ -544,7 +544,7 @@
 	dh_bugfiles $(patsubst %,-N%,$(filter grub-efi-%-signed-template,$(BUILD_PACKAGES))) -A
 
 override_dh_strip:
-	dh_strip -X/usr/bin/grub-emu
+	dh_strip -X/usr/bin/grub-emu -X/usr/lib/grub-xen/grub-x86_64-xen.bin -X/usr/lib/grub-xen/grub-i386-xen_pvh.bin -X/usr/lib/grub-xen/grub-i386-xen.bin
 
 override_dh_shlibdeps:
 	dh_shlibdeps -X.module

Reply via email to