Merge pull request #203524 from jakubgs/zfs/no-force-import-hibernate

nixos/zfs: assert no force import with hibernation

Changed files
+4
nixos
modules
tasks
filesystems
+4
nixos/modules/tasks/filesystems/zfs.nix
···
assertion = !cfgZfs.forceImportAll || cfgZfs.forceImportRoot;
message = "If you enable boot.zfs.forceImportAll, you must also enable boot.zfs.forceImportRoot";
}
+
{
+
assertion = cfgZfs.allowHibernation -> !cfgZfs.forceImportRoot && !cfgZfs.forceImportAll;
+
message = "boot.zfs.allowHibernation while force importing is enabled will cause data corruption";
+
}
];
boot = {