Skip to content

Commit

Permalink
nixos/zfs: mitigate data loss issues when resuming from hibernation
Browse files Browse the repository at this point in the history
  • Loading branch information
aecay authored and eclairevoyant committed Sep 6, 2024
1 parent 6427bca commit 345618d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/filesystems/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 345618d

Please sign in to comment.