From f080cc6ccd079c39b90a99bb5d3e390a4fe283bb Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sun, 4 Oct 2026 17:06:38 -0400 Subject: [PATCH] nixos/test-driver: Drop systemd stage 1 assertion --- nixos/lib/test-driver/src/test_driver/machine/__init__.py | 3 +-- nixos/modules/testing/test-instrumentation.nix | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/nixos/lib/test-driver/src/test_driver/machine/__init__.py b/nixos/lib/test-driver/src/test_driver/machine/__init__.py index 596627a79491..870754e822f3 100644 --- a/nixos/lib/test-driver/src/test_driver/machine/__init__.py +++ b/nixos/lib/test-driver/src/test_driver/machine/__init__.py @@ -1558,8 +1558,7 @@ class QemuMachine(BaseMachine): def switch_root(self) -> None: """ Transition from stage 1 to stage 2. This requires the - machine to be configured with `testing.initrdBackdoor = true` - and `boot.initrd.systemd.enable = true`. + machine to be configured with `testing.initrdBackdoor = true`. """ self.wait_for_unit("initrd.target") self.execute( diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix index 47890479a4c9..441b84591fc0 100644 --- a/nixos/modules/testing/test-instrumentation.nix +++ b/nixos/modules/testing/test-instrumentation.nix @@ -105,12 +105,6 @@ in config = { assertions = [ - { - assertion = cfg.initrdBackdoor -> config.boot.initrd.systemd.enable; - message = '' - `testing.initrdBackdoor` requires `boot.initrd.systemd.enable` to be enabled. - ''; - } { assertion = config.boot.isContainer -> !cfg.backdoor; message = ''