mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/bcachefs: fix scrub command
Before bcachefs-tools v1.34.0, scrub command was `bcachefs data scrub …`, then it got `bcachefs scrub …` with the old one still working. The old one doesn't work anymore. Fix the command for `services.bcachefs.autoScrub`, including version switch.
This commit is contained in:
parent
6329af54bd
commit
84ef80c6e7
1 changed files with 6 additions and 2 deletions
|
|
@ -370,12 +370,16 @@ in
|
|||
"sleep.target"
|
||||
];
|
||||
|
||||
script = "${lib.getExe cfg.package} data scrub ${fs}";
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Nice = 19;
|
||||
IOSchedulingClass = "idle";
|
||||
|
||||
ExecStart = lib.join " " [
|
||||
(lib.getExe cfg.package)
|
||||
(if lib.versionOlder cfg.package.version "v1.34.0" then "data scrub" else "scrub")
|
||||
(utils.escapeSystemdExecArg fs)
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue