Merge pull request #95584 from hercules-ci/fix-nixos-test-instrumentation
nixos/test-instrumentation.nix: Fix evaluation error
This commit is contained in:
commit
cf568e31f8
@ -55,7 +55,12 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
|
|||||||
systemd.services."serial-getty@hvc0".enable = false;
|
systemd.services."serial-getty@hvc0".enable = false;
|
||||||
|
|
||||||
# Only use a serial console, no TTY.
|
# Only use a serial console, no TTY.
|
||||||
virtualisation.qemu.consoles = [ qemuSerialDevice ];
|
# NOTE: optionalAttrs
|
||||||
|
# test-instrumentation.nix appears to be used without qemu-vm.nix, so
|
||||||
|
# we avoid defining consoles if not possible.
|
||||||
|
# TODO: refactor such that test-instrumentation can import qemu-vm
|
||||||
|
# or declare virtualisation.qemu.console option in a module that's always imported
|
||||||
|
virtualisation = lib.optionalAttrs (options ? virtualisation.qemu.consoles) { qemu.consoles = [ qemuSerialDevice ]; };
|
||||||
|
|
||||||
boot.initrd.preDeviceCommands =
|
boot.initrd.preDeviceCommands =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user