diff options
author | lassulus <lassulus@lassul.us> | 2022-08-25 13:13:20 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-25 15:32:09 +0200 |
commit | 1237ac36db1a457ae561134d191d2924a9ce5ffc (patch) | |
tree | 893e0455554e2a98244b8a7f94363b11007f0b59 /default.nix | |
parent | 6b0b20da18cdffd09f04faee7128c557bcb9f054 (diff) |
fix mdadm mounting, move test to mdadm test
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/default.nix b/default.nix index d20b67e..567324c 100644 --- a/default.nix +++ b/default.nix @@ -137,7 +137,7 @@ let }; mount.devices = q: x: let - z = foldl' recursiveUpdate {} (mapAttrsToList (name: mount-f { device = "/dev/${name}"; }) x.content); + z = foldl' recursiveUpdate {} (mapAttrsToList (name: mount-f { device = "/dev/${name}"; inherit name; }) x.content); # attrValues returns values sorted by name. This is important, because it # ensures that "/" is processed before "/foo" etc. in '' @@ -168,8 +168,9 @@ let mount.noop = q: x: {}; + mount.mdadm = q: x: + mount-f { device = "/dev/md/${q.name}"; } x.content; # TODO maybe we need to do something here? - mount.mdadm = mount.noop; mount.mdraid = mount.noop; mount.partition = q: x: |