nixos/zfs: mitigate data loss issues when resuming from hibernation

This commit is contained in:
Aaron Ecay
2024-09-06 13:39:21 -04:00
committed by éclairevoyant
parent 6427bcad3b
commit 345618de26
+1 -1
View File
@@ -607,7 +607,7 @@ in
$out/bin/zfs --help >/dev/null 2>&1
$out/bin/zpool --help >/dev/null 2>&1
'';
postDeviceCommands = mkIf (!config.boot.initrd.systemd.enable) (concatStringsSep "\n" ([''
postResumeCommands = mkIf (!config.boot.initrd.systemd.enable) (concatStringsSep "\n" ([''
ZFS_FORCE="${optionalString cfgZfs.forceImportRoot "-f"}"
''] ++ [(importLib {
# See comments at importLib definition.