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