mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
fix mdadm mounting, move test to mdadm test
This commit is contained in:
1 parent
6b0b20da18
commit
1237ac36db
3 files changed
+5
-4
No files matched your search
@@ -7,7 +7,7 @@ let
|
||||
inherit pkgs;
|
||||
inherit (pkgs) system;
|
||||
};
|
||||
disko-config = import ../example/raid.nix;
|
||||
disko-config = import ../example/mdadm.nix;
|
||||
tsp-create = pkgs.writeScript "create" ((pkgs.callPackage ../. {}).create disko-config);
|
||||
tsp-mount = pkgs.writeScript "mount" ((pkgs.callPackage ../. {}).mount disko-config);
|
||||
in makeTest' {
|
||||
@@ -34,5 +34,6 @@ in makeTest' {
|
||||
machine.succeed("${tsp-mount}");
|
||||
machine.succeed("${tsp-mount}"); # verify that the command is idempotent
|
||||
machine.succeed("test -b /dev/md/raid1");
|
||||
machine.succeed("grep -qs '/mnt/raid' /proc/mounts");
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user