nixos/zfs: Fix regression that prevents people to boot from zfs using grub if they didn't add zfs to boot.initrd.supportedFilesystems

See https://github.com/NixOS/nixpkgs/pull/99386
This commit is contained in:
Hedtke, Moritz 2021-03-20 23:56:32 +01:00
parent 2a41d14475
commit 742f3a4369
No known key found for this signature in database
GPG key ID: 6794D45A488C2EDE

View file

@ -446,7 +446,8 @@ in
'') rootPools));
};
boot.loader.grub = mkIf inInitrd {
# TODO FIXME See https://github.com/NixOS/nixpkgs/pull/99386#issuecomment-798813567. To not break people's bootloader and as probably not everybody would read release notes that thoroughly add inSystem.
boot.loader.grub = mkIf (inInitrd || inSystem) {
zfsSupport = true;
};