#685219 grub-pc: grub installation failed(core.img too large)

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Tobias Unsleber
Date:
2021-03-14 09:00:03 UTC
Severity:
normal
Tags:
#685219#5
Date:
2012-08-18 12:05:13 UTC
From:
To:
Dear Maintainer,

1. I did a standard install(amd64,btrfs) with a netboot installer on an usb stick.
At the installation point of grub, the installer reported an error installing grub.

2. I rebooted with a rescue system and installed grub manually using grub-install.
I got the error message:

/usr/sbin/grub-setup: warn: Your core.img is unusally large. It won't fit in the embedding area..

3. I checked the used module list for removing not needed modules, but the only used modules are:
	biosdisk, btrfs, part_msdos

4. I tried to upgrade grub to debian unstable, but no new version is available there

5. The size of core img.is 38237 Bytes (I just replaced the btrfs.mod by ext2.mod in
   /usr/lib/grub/i386-pc/, because ext2.mod its smaller, just to see if the size would
   be small enough with the ext2.mod. The new size is 34383 Bytes and grub-install reports
   this as too big again as before.

6. Maybe it's still the issue reported in Bug #562953 ?

regards,
Tobias

#685219#10
Date:
2021-03-14 08:56:15 UTC
From:
To:
[Tobias Unsleber]

I ran into the same error when upgrading from 2.02+dfsg1-20+deb10u3 to
2.02+dfsg1-20+deb10u4 in Buster.

The /boot/grub/i386-pc/core.img file in 2.02+dfsg1-20+deb10u3 is 31084
bytes, and while I do no longer have the byte size for 2.02+dfsg1-20+deb10u4
around, it vas close to the same number and 32 blocks according to ls
-s.

I use RAID for / and ZFS on other file systems on the machine in question.
62 blocks are unused at the start of the disk.