Merge pull request #185763 from srhb/zfs-scrub-synchronously
nixos/zfs: scrub synchronously
This commit is contained in:
commit
a7f89ddd63
|
@ -767,10 +767,10 @@ in
|
||||||
description = "ZFS pools scrubbing";
|
description = "ZFS pools scrubbing";
|
||||||
after = [ "zfs-import.target" ];
|
after = [ "zfs-import.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "simple";
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
${cfgZfs.package}/bin/zpool scrub ${
|
${cfgZfs.package}/bin/zpool scrub -w ${
|
||||||
if cfgScrub.pools != [] then
|
if cfgScrub.pools != [] then
|
||||||
(concatStringsSep " " cfgScrub.pools)
|
(concatStringsSep " " cfgScrub.pools)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue