Arrange to insmod xzio and lzopio when booting a kernel as a Xen guest
authorIan Campbell <ijc@debian.org>
Sun, 30 Nov 2014 12:12:52 +0000 (12:12 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Mon, 15 Jul 2024 15:05:20 +0000 (17:05 +0200)
This is needed in case the Linux kernel is compiled with CONFIG_KERNEL_XZ or
CONFIG_KERNEL_LZO rather than CONFIG_KERNEL_GZ (gzio is already loaded by
grub.cfg today).

Signed-off-by: Ian Campbell <ijc@debian.org>
Bug-Debian: https://bugs.debian.org/755256
Forwarded: http://lists.gnu.org/archive/html/grub-devel/2014-11/msg00091.html
Last-Update: 2014-11-30

Patch-Name: insmod-xzio-and-lzopio-on-xen.patch

Gbp-Pq: Name insmod-xzio-and-lzopio-on-xen.patch

util/grub.d/10_linux.in

index c4ed052a1aa12f0e48d093f32a4aad2c27e4ec34..260e857245f4e722c40ff6465ca24684dcfd8199 100644 (file)
@@ -163,6 +163,7 @@ linux_entry ()
   fi
 
   echo "       insmod gzio" | sed "s/^/$submenu_indentation/"
+  echo "       if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
 
   if [ x$dirname = x/ ]; then
     if [ -z "${prepare_root_cache}" ]; then