summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-04-16 21:34:38 +0200
committerGitHub <noreply@github.com>2022-04-16 21:34:38 +0200
commit9c70501b372c90c3ab9775a1144794fe30b568da (patch)
tree3cef3e5b373abe5c0f5949a29da63be85cd39309 /nixos/tests
parent415c23a2372745ee4460af7c512d972db50dcf37 (diff)
parent01bc138a8ef25314e08843845655480c9b04e879 (diff)
downloadnixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar.gz
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar.bz2
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar.lz
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar.xz
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.tar.zst
nixpkgs-9c70501b372c90c3ab9775a1144794fe30b568da.zip
Merge pull request #168793 from helsinki-systems/feat/systemd-stage-1-mdraid-merge
nixos/stage-1-init: Merge mdraid module into swraid
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix2
-rw-r--r--nixos/tests/systemd-initrd-swraid.nix (renamed from nixos/tests/systemd-initrd-mdraid.nix)8
2 files changed, 5 insertions, 5 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index daef79e684d..cb68ef68530 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -521,8 +521,8 @@ in
   systemd-confinement = handleTest ./systemd-confinement.nix {};
   systemd-cryptenroll = handleTest ./systemd-cryptenroll.nix {};
   systemd-escaping = handleTest ./systemd-escaping.nix {};
-  systemd-initrd-mdraid = handleTest ./systemd-initrd-mdraid.nix {};
   systemd-initrd-simple = handleTest ./systemd-initrd-simple.nix {};
+  systemd-initrd-swraid = handleTest ./systemd-initrd-swraid.nix {};
   systemd-journal = handleTest ./systemd-journal.nix {};
   systemd-machinectl = handleTest ./systemd-machinectl.nix {};
   systemd-networkd = handleTest ./systemd-networkd.nix {};
diff --git a/nixos/tests/systemd-initrd-mdraid.nix b/nixos/tests/systemd-initrd-swraid.nix
index 0d8827558fb..28a0fb3192a 100644
--- a/nixos/tests/systemd-initrd-mdraid.nix
+++ b/nixos/tests/systemd-initrd-swraid.nix
@@ -1,5 +1,5 @@
 import ./make-test-python.nix ({ lib, pkgs, ... }: {
-  name = "systemd-initrd-mdraid";
+  name = "systemd-initrd-swraid";
 
   nodes.machine = { pkgs, ... }: {
     # Use systemd-boot
@@ -17,7 +17,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
         enable = true;
         emergencyAccess = true;
       };
-      services.mdraid = {
+      services.swraid = {
         enable = true;
         mdadmConf = ''
           ARRAY /dev/md0 devices=/dev/vdc,/dev/vdd
@@ -26,7 +26,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
       kernelModules = [ "raid0" ];
     };
 
-    specialisation.boot-mdraid.configuration.virtualisation.bootDevice = "/dev/disk/by-label/testraid";
+    specialisation.boot-swraid.configuration.virtualisation.bootDevice = "/dev/disk/by-label/testraid";
   };
 
   testScript = ''
@@ -36,7 +36,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
     machine.succeed("mkdir -p /mnt && mount /dev/md0 /mnt && echo hello > /mnt/test && umount /mnt")
 
     # Boot from the RAID
-    machine.succeed("bootctl set-default nixos-generation-1-specialisation-boot-mdraid.conf")
+    machine.succeed("bootctl set-default nixos-generation-1-specialisation-boot-swraid.conf")
     machine.succeed("sync")
     machine.crash()
     machine.wait_for_unit("multi-user.target")