https://nixos.wiki/wiki/NixOS_on_ZFS#With_RAID When I change my “working” single ssd script, it also fails. This time during installation (nixos-install). I didn’t use the sda1/sdb1, instead I used by-id. I did use ext4 for mirror-boot instead of the vfat for single-boot.
error:
File system “/boot” is not a FAT EFI System Partition (ESP) file system.
Can anyone point me to a “better”/other tutorial.
note: Tomorrow I’ll upload my current script. I would be great if someone could check it, feedback is always appreciated. Or it might be helpful for others in the future.
Some background / My roadmap:
single ssd: boot, swap, native encrypted zfs (success)
This is working very well when both drives are installed. However, when I remove a drive and attempt to boot, I can’t get to a fully working system. Here’s what happens:
grub works fine
nixos stage 1 works fine (rpool imported)
nixos stage 2 hangs for a long time trying to mount the missing /boot2
eventually I get the option to enter the root password for emergency mode, or press ctrl-d to continue
If I press ctrl-d, it basically hangs again for a long time, and eventually puts me back to step 4.
If instead I enter the root password, I get a shell and can poke around. But if I try to systemctl start display-manager.service, the system hangs again, and eventually I’m back to step 4.
Is there some way for me to tell systemd that missing /boot2 is ok for now? That would be enough to make the mirrored booting worthwhile. In fact, having the system boot up as if everything is totally fine even though an entire drive is dead may not be desirable anyway.
What’s the advantage of using mirroredBoots? Is it needed for EFI booting? (I’m still booting in BIOS mode because I’ve found it to generally be more reliable, though I imagine I will try switching again eventually on newer hardware.)
Old thread, but since this question wasn’t answered, yes EFI booting requires a FAT/16/32 partition with the ESP flag. So an EXT4 partition can only boot via BIOS/MBR.