Commit ab2e77ea authored by Sarah Brofeldt's avatar Sarah Brofeldt
Browse files

nixos/zfs: scrub synchronously

This prevents spurious systemd failures if the timer unit starts a new
scrub before a long-running one has finished.
parent 39d7f929
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -765,10 +765,10 @@ in
        description = "ZFS pools scrubbing";
        after = [ "zfs-import.target" ];
        serviceConfig = {
          Type = "oneshot";
          Type = "simple";
        };
        script = ''
          ${cfgZfs.package}/bin/zpool scrub ${
          ${cfgZfs.package}/bin/zpool scrub -w ${
            if cfgScrub.pools != [] then
              (concatStringsSep " " cfgScrub.pools)
            else