GNU GRUB filesystem f2fs fail
How to build Linux image for x86 grub with f2fs filesystem?
What I did
- Buildroot commit sha1: 2024.08-1306-gdc9c4e0576
- Distribution of the build machine: Ubuntu 24.04.1 LTS (Noble Numbat)
All my steps in my repo:
git clone --remote-submodules --recurse-submodules -j8 https://github.com/AndreiCherniaev/buildroot_BIOS_f2fs_x86.git
cd buildroot_BIOS_f2fs_x86
make clean -C buildroot
make BR2_EXTERNAL=$PWD/my_external_tree -C $PWD/buildroot f2fs_qemu_x86_defconfig
make -C buildroot
qemu-system-i386 -M pc -drive file=../Buildroot.img,if=virtio,format=raw -net nic,model=virtio -net user
What happens
I see GNU GRUB screen instead of Linux... I have tested with QEMU and with hardware and both the same fail with f2fs... In BIOS terminal ls
gives empty result. After insmod f2fs
situation is the same.
I think my configs are right because when I build the same repo but with ext4 filesystem then Linux can be loaded... I try to use google and found "While GRUB supports F2FS since version 2.0.4, it cannot correctly read its boot files from an F2FS partition that was created with the extra_attr flag enabled" - but I don't think that it is relative to my case...
What was expected
After GNU GRUB Linux should be.
Edited by Andrei Cherniaev