From 63613d2b3027e6510cd5092a7a60dcc9234bc802 Mon Sep 17 00:00:00 2001 From: Logan Gunthorpe Date: Tue, 6 Oct 2026 11:28:44 -0600 Subject: [PATCH 2/2] Also insmod zstdio when booting a Xen guest Trixie kernels are built with CONFIG_KERNEL_ZSTD. The Xen loader needs the kernel decompressed, and since 2.14 GRUB has zstdio, but grub.cfg only loads xzio and lzopio on Xen. PV guests still fail with "not xen image" (Closes: #1102066). --- debian/changelog | 2 ++ debian/patches/insmod-xzio-and-lzopio-on-xen.patch | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8a236e0b323f..2994e235b5c2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ grub2 (2.14-5) UNRELEASED; urgency=medium [ Logan Gunthorpe ] * Backport fix for a heap overrun in zstdio + * Also insmod zstdio on Xen so Trixie's zstd-compressed kernels boot + as PV guests (Closes: #1102066) -- Logan Gunthorpe Tue, 06 Oct 2026 11:28:34 -0600 diff --git a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch index ad82af06bb34..8de36c3119a3 100644 --- a/debian/patches/insmod-xzio-and-lzopio-on-xen.patch +++ b/debian/patches/insmod-xzio-and-lzopio-on-xen.patch @@ -26,7 +26,7 @@ index 90ad4e1..24e015d 100644 fi echo " insmod gzio" | sed "s/^/$submenu_indentation/" -+ echo " if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/" ++ echo " if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; insmod zstdio; fi" | sed "s/^/$submenu_indentation/" if [ x$dirname = x/ ]; then if [ -z "${prepare_root_cache}" ]; then -- 2.47.3