templates/boot/grub/grub.cfg: drop insmod part_{msdos,gpt} as it breaks booting
authorMichael Prokop <mika@grml.org>
Wed, 1 Dec 2010 00:03:54 +0000 (01:03 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 1 Dec 2010 00:03:54 +0000 (01:03 +0100)
If the modules part_msdos and part_gpt are insmod-ed then booting
with grub (manifold ISO boot) fails with "unaligned pointer
0x........'. The issue can be reproduced with either realâ„¢
hardware or using qemu/kvm via restricting memory to ~64MB (using
'-m 64') but won't be present if using something like 512MB
memory in the virtual machine.

Thanks to Axel Beckert for a bugreport and to Thorsten Glaser for
locating the source of the bug.

Testing: issue940
Thanks: Thorsten Glaser <tg@mirbsd.org>

templates/boot/grub/grub.cfg

index 0f4d683..da9c6b4 100644 (file)
@@ -20,10 +20,6 @@ else
   set menu_color_highlight=black/yellow
 fi
 
-# make sure we can access partitions
-insmod part_msdos
-insmod part_gpt
-
 if [ ${iso_path} ] ; then
     set loopback="findiso=${iso_path}"
 fi