From c959c1476ab7d229a30db25c2fe659fecab791ab Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Sat, 6 Mar 2021 21:06:00 +0100 Subject: [PATCH] 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. --- templates/boot/grub/addons.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.1.4