nixos/test-driver: Drop systemd stage 1 assertion

This commit is contained in:
Will Fancher
2026-10-04 17:06:38 -04:00
parent 297e0b0183
commit f080cc6ccd
2 changed files with 1 additions and 8 deletions

View File

@@ -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(

View File

@@ -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 = ''