#1103761 grub-efi-amd64: nilfs2 not recognized.

Package:
grub-efi-amd64
Source:
grub-efi-amd64
Description:
GRand Unified Bootloader, version 2 (EFI-AMD64 version)
Submitter:
dE
Date:
2025-04-29 03:48:02 UTC
Severity:
normal
#1103761#5
Date:
2025-04-21 10:59:22 UTC
From:
To:
Package: grub-efi-amd64
Version: 2.12-7
Severity: normal
Grub supports nilfs2 filesystem, however the debian version of grub,
although not reporting any error during the bootloader installation,
fails to load stage 2 and is stuck at the grub prompt. Running ls on
the partition (from the grub prompt) reports an unrecognised
filesystem. The nilfs2.mod is also missing from
/boot/grub/x86_64-efi/. The setup was attempted in a chroot with all
of proc, sys and dev rbind ed.

By contrast doing the same procedures from a Gentoo OS (for Debian
trixie), made Debian successfully boot from the same nilfs partition
and nilfs2.mod was also installed.

Procedures done from chroot --
grub-install --no-nvram --root-directory=/ --boot-directory=/boot/
--efi-directory /boot/efi/ --target=x86_64-efi --boot-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg

Procedures done from the Gentoo OS --
grub-install --no-nvram --root-directory=/mnt/pd/
--boot-directory=/mnt/pd/boot/ --efi-directory /mnt/pd/boot/efi/
--target=x86_64-efi --boot-directory=/mnt/pd/boot
grub-mkconfig -o /mnt/pd/boot/grub/grub.cfg

#1103761#10
Date:
2025-04-21 11:41:53 UTC
From:
To:
Am Montag, dem 21.04.2025 um 16:29 +0530 schrieb dE:

Hi,

do you use SecureBoot? There nilfs2 isn't included.
But it's strange that it doestn't exist in /boot/grub/
For me it is there.

Does /usr/lib/grub/x86_64-efi/nilfs2.mod exists?
/usr/lib/grub/x86_64-efi/fs.lst should list nilfs2

#1103761#15
Date:
2025-04-21 15:26:59 UTC
From:
To:
No, I don't have secure boot. Maybe it has to do with the chroot environment?
#1103761#20
Date:
2025-04-22 09:00:15 UTC
From:
To:
Apart from that, /usr/lib/grub/x86_64-efi/nilfs2.mod exists and
/mnt/pd/usr/lib/grub/x86_64-efi/fs.lst does have nilfs2.
I'll try booting into the OS and try running the same commands to
verify if it's a chroot issue or not. But this issue did not persist
with Debian buster at least(i.e. a long time back).

#1103761#25
Date:
2025-04-29 03:43:59 UTC
From:
To:
On a grub-install and grub-mkconfig after booting Debian (non chroot
env), although the nilfs2.mod is made, but I'm still getting the grub
prompt on boot.