mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nixos/zfs: scrub synchronously
This prevents spurious systemd failures if the timer unit starts a new scrub before a long-running one has finished.
This commit is contained in:
parent
39d7f929fb
commit
ab2e77ea82
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue