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
commit a10069fd24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {