From ab2e77ea829c20eeb4f451b751b5ddd85e1307c6 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Tue, 9 Aug 2022 07:06:09 +0200 Subject: [PATCH] nixos/zfs: scrub synchronously This prevents spurious systemd failures if the timer unit starts a new scrub before a long-running one has finished. --- nixos/modules/tasks/filesystems/zfs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 795879c6764..8983cd132c5 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -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