#5219 closed defect (fixed)

e2fsprogs-1.47.0 enables metadata_csum_seed which breaks grub-install

Reported by: Xi Ruoyao Owned by: Xi Ruoyao
Priority: normal Milestone: 11.3
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description (last modified by Xi Ruoyao)

For details see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030846.

TL;DR: if the host has e2fsprogs >= 1.47.0 installed and the /boot partition (or /, if /boot is not a separate partition) for LFS is created with it, section 10.4 in LFS and the UEFI counterpart in BLFS will fail.

Change History (6)

comment:1 by Xi Ruoyao, 21 months ago

Description: modified (diff)

comment:2 by Xi Ruoyao, 21 months ago

Description: modified (diff)

comment:3 by Xi Ruoyao, 21 months ago

BLFS grub-efi fixed at BLFS r11.2-1236.

I've not tried on a BIOS boot system but if I correctly understand the way GRUB works, the same fix is also needed for LFS GRUB.

We can test if a system suffers the issue by using tune2fs -O metadata_csum_seed /dev/<device node name of /boot or /> to enable the metadata_csum_seed feature, and running grub-install to see if it fails.

comment:4 by ken@…, 21 months ago

Testing on a fresh bios-boot system, /boot is on /dev/sda3:

 #tune2fs -O metadata_csum_seed /dev/sda3
tune2fs 1.47.0 (5-Feb-2023)
 #grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: unknown filesystem.

Reverting that (metadata_csum_seed) allows the install to work.

comment:5 by Xi Ruoyao, 21 months ago

Owner: changed from lfs-book to Xi Ruoyao
Status: newassigned

I'll add the GRUB patch after a test in QEMU.

comment:6 by Xi Ruoyao, 21 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.