From: Ian Campbell Date: Sun, 30 Nov 2014 12:12:52 +0000 (+0000) Subject: Arrange to insmod xzio and lzopio when booting a kernel as a Xen guest X-Git-Tag: archive/raspbian/2.14_git20250718.0e36779-2+rpi1^2~47 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7b8468b4a4fcb2ec4ed32b3df8590f1611bd91c1;p=grub2.git Arrange to insmod xzio and lzopio when booting a kernel as a Xen guest 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 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 --- diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 3249dd2..de26bd9 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -158,6 +158,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