diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2024-02-20 23:42:59 +0100 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2024-02-20 23:42:59 +0100 |
commit | c607e70f7053e96e21b045fe1f47c57356c96341 (patch) | |
tree | b9797f9118699fb40c7c520304ecf978fa8a785f /nixos/tests/incus | |
parent | 39b4c0d686389c2a0eeb249b5c0d6ae1626b989b (diff) |
nixosTests.incus: add test with old and new init
Diffstat (limited to 'nixos/tests/incus')
-rw-r--r-- | nixos/tests/incus/container.nix | 4 | ||||
-rw-r--r-- | nixos/tests/incus/default.nix | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/nixos/tests/incus/container.nix b/nixos/tests/incus/container.nix index 0e65cc1e15294..0f42d16f133d6 100644 --- a/nixos/tests/incus/container.nix +++ b/nixos/tests/incus/container.nix @@ -1,11 +1,11 @@ -import ../make-test-python.nix ({ pkgs, lib, ... } : +import ../make-test-python.nix ({ pkgs, lib, extra ? {}, ... } : let releases = import ../../release.nix { configuration = { # Building documentation makes the test unnecessarily take a longer time: documentation.enable = lib.mkForce false; - }; + } // extra; }; container-image-metadata = releases.lxdContainerMeta.${pkgs.stdenv.hostPlatform.system}; diff --git a/nixos/tests/incus/default.nix b/nixos/tests/incus/default.nix index c8e53774599b0..ff36fe9d67308 100644 --- a/nixos/tests/incus/default.nix +++ b/nixos/tests/incus/default.nix @@ -5,7 +5,11 @@ handleTestOn, }: { - container = import ./container.nix { inherit system pkgs; }; + container-old-init = import ./container.nix { inherit system pkgs; }; + container-new-init = import ./container.nix { inherit system pkgs; extra = { + # Enable new systemd init + boot.initrd.systemd.enable = true; + }; }; lxd-to-incus = import ./lxd-to-incus.nix { inherit system pkgs; }; preseed = import ./preseed.nix { inherit system pkgs; }; socket-activated = import ./socket-activated.nix { inherit system pkgs; }; |