about summary refs log tree commit diff
path: root/nixos/tests/zfs.nix
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-03-27 14:25:08 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-03-27 18:18:59 +0200
commit56fa7ab066165a2eb6274a0ab423b518e3e115b4 (patch)
treeeb324254f584f58a04febdc3243e8f4e6e8cf982 /nixos/tests/zfs.nix
parent64a4de856877a32e4f8f4863101e2cbbfdc6b62b (diff)
nixos/tests/zfs: add zfsUnstable test for systemd-stage 1
Diffstat (limited to 'nixos/tests/zfs.nix')
-rw-r--r--nixos/tests/zfs.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/zfs.nix b/nixos/tests/zfs.nix
index 3e55369daa06a..bcb9d9bcfd60d 100644
--- a/nixos/tests/zfs.nix
+++ b/nixos/tests/zfs.nix
@@ -12,6 +12,7 @@ let
                       then pkgs.zfsUnstable.latestCompatibleLinuxPackages
                       else pkgs.linuxPackages
     , enableUnstable ? false
+    , enableSystemdStage1 ? false
     , extraTest ? ""
     }:
     makeTest {
@@ -36,6 +37,7 @@ let
         boot.kernelPackages = kernelPackage;
         boot.supportedFilesystems = [ "zfs" ];
         boot.zfs.enableUnstable = enableUnstable;
+        boot.initrd.systemd.enable = enableSystemdStage1;
 
         environment.systemPackages = [ pkgs.parted ];
 
@@ -176,6 +178,11 @@ in {
     enableUnstable = true;
   };
 
+  unstableWithSystemdStage1 = makeZfsTest "unstable" {
+    enableUnstable = true;
+    enableSystemdStage1 = true;
+  };
+
   installer = (import ./installer.nix { }).zfsroot;
 
   expand-partitions = makeTest {