summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems/zfs.nix
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2019-01-14 20:55:37 +0100
committerLinus Heckemann <git@sphalerite.org>2019-01-14 21:00:20 +0100
commit783f2c84e863e6d98c5f20d83d8aa10c87e2083e (patch)
tree27b526365024ad5337cc2766dca855f231301d7b /nixos/modules/tasks/filesystems/zfs.nix
parent0dc4a9bb5007201376548c2448ccbc04419b2563 (diff)
downloadnixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar.gz
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar.bz2
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar.lz
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar.xz
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.tar.zst
nixpkgs-783f2c84e863e6d98c5f20d83d8aa10c87e2083e.zip
nixos/zfs: autoscrub only after boot is complete
Fixes #53583
Diffstat (limited to 'nixos/modules/tasks/filesystems/zfs.nix')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index 8f8c9e23e13..37a19fb9fc8 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -535,6 +535,7 @@ in
 
       systemd.timers.zfs-scrub = {
         wantedBy = [ "timers.target" ];
+        after = [ "multi-user.target" ]; # Apparently scrubbing before boot is complete hangs the system? #53583
         timerConfig = {
           OnCalendar = cfgScrub.interval;
           Persistent = "yes";