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

This commit is contained in:
Aaron Ecay 2022-12-27 22:42:53 +00:00 committed by éclairevoyant
parent 6427bcad3b
commit 345618de26
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

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.