Merge pull request #167048 from helsinki-systems/fix/test-boot-cdrom

nixos/tests/boot: fix after aa0f27abb0
This commit is contained in:
Janne Heß
2022-04-03 20:52:04 +02:00
committed by GitHub
3 changed files with 8 additions and 4 deletions
@@ -89,6 +89,11 @@ else
fi
# Required by the activation script
install -m 0755 -d /etc /etc/nixos
install -m 01777 -d /tmp
# Run the script that performs all configuration activation that does
# not have to be done at boot time.
echo "running activation script..."
@@ -102,7 +102,6 @@ in
];
systemd.tmpfiles.rules = [
"d /etc/nixos 0755 root root - -"
"d /nix/var 0755 root root - -"
"L+ /nix/var/nix/gcroots/booted-system 0755 root root - /run/booted-system"
"d /run/lock 0755 root root - -"
+3 -3
View File
@@ -42,7 +42,7 @@ let
nodes = { };
testScript =
''
nodes.machine = create_machine(${machineConfig})
machine = create_machine(${machineConfig})
machine.start()
machine.wait_for_unit("multi-user.target")
machine.succeed("nix store verify --no-trust -r --option experimental-features nix-command /run/current-system")
@@ -83,7 +83,7 @@ let
name = "boot-netboot-" + name;
nodes = { };
testScript = ''
nodes.machine = create_machine(${machineConfig})
machine = create_machine(${machineConfig})
machine.start()
machine.wait_for_unit("multi-user.target")
machine.shutdown()
@@ -138,7 +138,7 @@ in {
if os.system("qemu-img create -f qcow2 -F raw -b ${sdImage} ${mutableImage}") != 0:
raise RuntimeError("Could not create mutable linked image")
nodes.machine = create_machine(${machineConfig})
machine = create_machine(${machineConfig})
machine.start()
machine.wait_for_unit("multi-user.target")
machine.succeed("nix store verify -r --no-trust --option experimental-features nix-command /run/current-system")