mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
nixos/test-driver: Drop systemd stage 1 assertion
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user