Merge pull request #53965 from mayflower/zfs-autoscrub-fix

nixos/zfs: autoscrub only after boot is complete
This commit is contained in:
Jörg Thalheim 2019-01-22 10:48:17 +00:00 committed by GitHub
commit 859ce47b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,6 +535,7 @@ in
systemd.timers.zfs-scrub = { systemd.timers.zfs-scrub = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
after = [ "multi-user.target" ]; # Apparently scrubbing before boot is complete hangs the system? #53583
timerConfig = { timerConfig = {
OnCalendar = cfgScrub.interval; OnCalendar = cfgScrub.interval;
Persistent = "yes"; Persistent = "yes";