Work around regression in GRUB 2.00-22
authorMichael Schierl <schierlm@gmx.de>
Sat, 29 Mar 2014 12:34:28 +0000 (13:34 +0100)
committerMichael Schierl <schierlm@gmx.de>
Sat, 29 Mar 2014 12:34:28 +0000 (13:34 +0100)
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

index a1221df..ed91b04 100644 (file)
@@ -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