Merge pull request #185763 from srhb/zfs-scrub-synchronously

nixos/zfs: scrub synchronously
This commit is contained in:
Franz Pletz 2022-08-10 15:20:52 +02:00 committed by GitHub
commit a7f89ddd63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -767,10 +767,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