lol

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

nixos/zfs: assert no force import with hibernation

authored by

Ryan Lahfa and committed by
GitHub
a10069fd 5431f7cc

+4
+4
nixos/modules/tasks/filesystems/zfs.nix
··· 503 503 assertion = !cfgZfs.forceImportAll || cfgZfs.forceImportRoot; 504 504 message = "If you enable boot.zfs.forceImportAll, you must also enable boot.zfs.forceImportRoot"; 505 505 } 506 + { 507 + assertion = cfgZfs.allowHibernation -> !cfgZfs.forceImportRoot && !cfgZfs.forceImportAll; 508 + message = "boot.zfs.allowHibernation while force importing is enabled will cause data corruption"; 509 + } 506 510 ]; 507 511 508 512 boot = {