FS#76168 - [grub] In versions 2:2.06.r261 and later, an error: unknown filesystem appears for f2fs partitions.

Attached to Project: Arch Linux
Opened by sommio (sommio) - Tuesday, 11 October 2022, 09:55 GMT
Last edited by Christian Hesse (eworm) - Friday, 09 December 2022, 07:32 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Let's start with core/grub 2:2.06-5
[code]
❯ pacman -Qi grub
Name : grub
Version : 2:2.06-5
Description : GNU GRand Unified Bootloader (2)
Architecture : x86_64
URL : https://www.gnu.org/software/grub/
Licenses : GPL3
Groups : None
Provides : grub-common grub-bios grub-emu grub-efi-x86_64
Depends On : sh xz gettext device-mapper
Optional Deps : freetype2: For grub-mkfont usage [installed]
fuse2: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support [installed]
lzop: For grub-mkrescue LZO support
efibootmgr: For grub-install EFI support [installed]
libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
os-prober: To detect other OSes when generating grub.cfg in BIOS systems [installed]
mtools: For grub-mkrescue FAT FS support [installed]
Required By : None
Optional For : None
Conflicts With : grub-common grub-bios grub-emu grub-efi-x86_64 grub-legacy
Replaces : grub-common grub-bios grub-emu grub-efi-x86_64
Installed Size : 34.10 MiB
Packager : Christian Hesse <eworm@archlinux.org>
Build Date : Mon 28 Mar 2022 16:27:03 CST
Install Date : Tue 11 Oct 2022 17:32:08 CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : None


❯ sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=archlinux
Installing for x86_64-efi platform.


Installation finished. No error reported.
❯ sudo grub-probe -d /dev/sda2
f2fs
[/code]

Everything is normal... When I updated to core/grub 2:2.06.r334
[code]
❯ pacman -Qi grub
Name : grub
Version : 2:2.06.r334.g340377470-1
Description : GNU GRand Unified Bootloader (2)
Architecture : x86_64
URL : https://www.gnu.org/software/grub/
Licenses : GPL3
Groups : None
Provides : grub-common grub-bios grub-emu grub-efi-x86_64
Depends On : sh xz gettext device-mapper
Optional Deps : freetype2: For grub-mkfont usage [installed]
fuse2: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support [installed]
lzop: For grub-mkrescue LZO support
efibootmgr: For grub-install EFI support [installed]
libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
os-prober: To detect other OSes when generating grub.cfg in BIOS systems [installed]
mtools: For grub-mkrescue FAT FS support [installed]
Required By : None
Optional For : None
Conflicts With : grub-common grub-bios grub-emu grub-efi-x86_64 grub-legacy
Replaces : grub-common grub-bios grub-emu grub-efi-x86_64
Installed Size : 33.02 MiB
Packager : Christian Hesse <eworm@archlinux.org>
Build Date : Wed 05 Oct 2022 23:20:09 CST
Install Date : Tue 11 Oct 2022 17:46:41 CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature


❯ sudo grub-probe -d /dev/sda2
grub-probe: error: unknown filesystem.


❯ sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=archlinux
Installing for x86_64-efi platform.
grub-install: error: unknown filesystem.
[/code]

OR core/grub 2:2.06.r261

[code]
❯ sudo pacman -Qi grub
Name : grub
Version : 2:2.06.r261.g2f4430cc0-1
Description : GNU GRand Unified Bootloader (2)
Architecture : x86_64
URL : https://www.gnu.org/software/grub/
Licenses : GPL3
Groups : None
Provides : grub-common grub-bios grub-emu grub-efi-x86_64
Depends On : sh xz gettext device-mapper
Optional Deps : freetype2: For grub-mkfont usage [installed]
fuse2: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support [installed]
lzop: For grub-mkrescue LZO support
efibootmgr: For grub-install EFI support [installed]
libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
os-prober: To detect other OSes when generating grub.cfg in BIOS systems [installed]
mtools: For grub-mkrescue FAT FS support [installed]
Required By : None
Optional For : None
Conflicts With : grub-common grub-bios grub-emu grub-efi-x86_64 grub-legacy
Replaces : grub-common grub-bios grub-emu grub-efi-x86_64
Installed Size : 32.88 MiB
Packager : Christian Hesse <eworm@archlinux.org>
Build Date : Wed 08 Jun 2022 21:46:04 CST
Install Date : Tue 11 Oct 2022 17:50:21 CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

❯ sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=archlinux
Installing for x86_64-efi platform.
grub-install: error: unknown filesystem.
❯ sudo grub-probe -d /dev/sda2
grub-probe: error: unknown filesystem.
[/code]

Additional info:
* core/grub 2:2.06.r261 and later
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

1. Install 2.06.r261 or later of core/grub
2. sudo grub-probe -d F2FS_PARTITION
This task depends upon

Closed by  Christian Hesse (eworm)
Friday, 09 December 2022, 07:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  grub 2:2.06.r403.g7259d55ff-1
Comment by Christian Hesse (eworm) - Wednesday, 16 November 2022, 10:38 GMT
I guess this is caused by either of these:

https://git.savannah.gnu.org/cgit/grub.git/commit/?id=4bd9877f62166b7e369773ab92fe24a39f6515f8
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=deae293f399dde3773cf37dfa9b77ca7e04ef772

Can you check your filesystem, please?
And can you build and test a package with these two reverted to verify?
Comment by Christian Hesse (eworm) - Wednesday, 07 December 2022, 16:13 GMT Comment by sommio (sommio) - Friday, 09 December 2022, 05:48 GMT
❯ sudo grub-probe -d /dev/sda2
f2fs

It's working fine now, thank you very much!


❯ pacman -Qi grub
Name : grub
Version : 2:2.06.r380.g151467888-1.1
Description : GNU GRand Unified Bootloader (2)
Architecture : x86_64
URL : https://www.gnu.org/software/grub/
Licenses : GPL3
Groups : None
Provides : grub-common grub-bios grub-emu grub-efi-x86_64
Depends On : sh xz gettext device-mapper
Optional Deps : freetype2: For grub-mkfont usage [installed]
fuse2: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support
[installed]
lzop: For grub-mkrescue LZO support
efibootmgr: For grub-install EFI support [installed]
libisoburn: Provides xorriso for generating grub rescue iso
using grub-mkrescue
os-prober: To detect other OSes when generating grub.cfg in
BIOS systems [installed]
mtools: For grub-mkrescue FAT FS support [installed]
Required By : None
Optional For : None
Conflicts With : grub-common grub-bios grub-emu grub-efi-x86_64
grub-legacy
Replaces : grub-common grub-bios grub-emu grub-efi-x86_64
Installed Size : 33.12 MiB
Packager : Christian Hesse <eworm@archlinux.org>
Build Date : Wed 07 Dec 2022 23:54:16 CST
Install Date : Fri 09 Dec 2022 13:38:39 CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : None

Loading...