diff options
author | Raito Bezarius <masterancpp@gmail.com> | 2023-03-27 14:25:08 +0200 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2023-03-27 18:18:59 +0200 |
commit | 56fa7ab066165a2eb6274a0ab423b518e3e115b4 (patch) | |
tree | eb324254f584f58a04febdc3243e8f4e6e8cf982 | |
parent | 64a4de856877a32e4f8f4863101e2cbbfdc6b62b (diff) |
nixos/tests/zfs: add zfsUnstable test for systemd-stage 1
-rw-r--r-- | nixos/tests/zfs.nix | 7 |
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 { |