mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
Merge pull request #269353 from kylehendricks/snapraid-fix-split-parity2
snapraid: fix split parity files
This commit is contained in:
commit
f3814afdc6
|
@ -1308,6 +1308,9 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
|
|||
qemu-vm module from overriding `fileSystems` by setting
|
||||
`virtualisation.fileSystems = lib.mkForce { };`.
|
||||
|
||||
- When using [split parity files](https://www.snapraid.it/manual#7.1) in `snapraid`,
|
||||
the snapraid-sync systemd service will no longer fail to run.
|
||||
|
||||
## Nixpkgs Library {#sec-release-23.11-nixpkgs-lib}
|
||||
|
||||
### Breaking Changes {#sec-release-23.11-lib-breaking}
|
||||
|
|
|
@ -217,9 +217,13 @@ in
|
|||
# to remove them if they are stale
|
||||
let
|
||||
contentDirs = map dirOf contentFiles;
|
||||
# Multiple "split" parity files can be specified in a single
|
||||
# "parityFile", separated by a comma.
|
||||
# https://www.snapraid.it/manual#7.1
|
||||
splitParityFiles = map (s: splitString "," s) parityFiles;
|
||||
in
|
||||
unique (
|
||||
attrValues dataDisks ++ parityFiles ++ contentDirs
|
||||
attrValues dataDisks ++ splitParityFiles ++ contentDirs
|
||||
);
|
||||
} // optionalAttrs touchBeforeSync {
|
||||
ExecStartPre = "${pkgs.snapraid}/bin/snapraid touch";
|
||||
|
|
Loading…
Reference in a new issue