From 10201fbbc1d5717e11bd2e423bc43c6d27721823 Mon Sep 17 00:00:00 2001 From: Michael Schierl Date: Sat, 29 Mar 2014 13:34:28 +0100 Subject: [PATCH] Work around regression in GRUB 2.00-22 Seems that Grub 2.00-22 cannot properly load a gzipped initrd file with 'linux16' command (which is used to load the gzipped FreeDOS memdisk image). As a workaround, mount the filesystem using the 'loopback' command (which transparently decompresses it) and then use blocklist syntax to load the whole mounted filesystem as an initrd. --- templates/boot/grub/addons.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/boot/grub/addons.cfg b/templates/boot/grub/addons.cfg index a1221df..ed91b04 100644 --- a/templates/boot/grub/addons.cfg +++ b/templates/boot/grub/addons.cfg @@ -18,7 +18,8 @@ menuentry "GRUB - all in one image" { menuentry "FreeDOS" { insmod linux16 linux16 /boot/addons/memdisk - initrd16 /boot/addons/balder10.imz + loopback balder /boot/addons/balder10.imz + initrd16 (balder)+2880 } if [ ${iso_path} ] ; then -- 2.1.4