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

nixos/zfs: assert no force import with hibernation
This commit is contained in:
Ryan Lahfa
2022-12-22 01:12:38 +01:00
committed by GitHub
+4
View File
@@ -503,6 +503,10 @@ in
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 = {