From: Mihai Moldovan Date: Sat, 6 Mar 2021 20:06:00 +0000 (+0100) Subject: GRUB: drop loopback usage for balder10/FreeDOS. X-Git-Tag: v0.38.0~9^2 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=c959c1476ab7d229a30db25c2fe659fecab791ab;hp=6eb712a0d9a781966fd843d1cb0f1f3b754da609 GRUB: drop loopback usage for balder10/FreeDOS. Looks like a relic from the bad, old days. It's certainly not needed any longer, since the initrd16 command can load the file just fine and newer grub versions are not able to load compressed files in such a manner, since the length (+2880) refers to the uncompressed size. Grub will see that the file is smaller than that and error out. If we were to give it the compressed size, decompression would fail due to the buffer being too small. --- diff --git a/templates/boot/grub/addons.cfg b/templates/boot/grub/addons.cfg index 3b515d8..86f117f 100644 --- a/templates/boot/grub/addons.cfg +++ b/templates/boot/grub/addons.cfg @@ -40,8 +40,7 @@ if [ "${grub_platform}" != "efi" ] ; then menuentry "FreeDOS" { insmod linux16 linux16 /boot/addons/memdisk - loopback balder /boot/addons/balder10.imz - initrd16 (balder)+2880 + initrd16 /boot/addons/balder10.imz } if [ ${iso_path} ] ; then