1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00
nixpkgs/nixos/doc/manual/development
Maximilian Bosch c6978e8a58
nixos/test-driver: exit early if /dev/vhost-vsock isn't available
Right now it wrongly seems as if you can set
`sshBackdoor.enable = true;` for each test and not only for debugging
purposes.

This is wrong however since you'd need to pass /dev/vhost-vsock into the
sandbox for this (which is also a prerequisite for #392117).

To make that clear, two things were changed:

* add a warning to the manual to communicate this.
* exit both interactive and non-interactive driver early if
  /dev/vhost-vsock is missing and the ssh backdoor is enabled.

  If that's the case, we pass a CLI flag to the driver already in the
  interactive case. This change also sets the flag for the
  non-interactive case.

  That way we also get a better error if somebody tries to enable this
  on a system that doesn't support that.
2025-05-13 11:14:13 +02:00
..
activation-script.section.md
assertions.section.md
bootspec.chapter.md
building-parts.chapter.md
developing-the-test-driver.chapter.md
development.md
etc-overlay.section.md
freeform-modules.section.md
importing-modules.section.md nixos/eval-config: Deprecate NIXOS_EXTRA_MODULE_PATH 2024-10-18 17:04:35 +02:00
linking-nixos-tests-to-packages.section.md
meta-attributes.section.md treewide: remove inactive maintainer ericsagnes 2025-05-09 12:03:09 +02:00
nixos-tests.chapter.md doc: init Testing Hardware Features section with vwifi 2025-04-20 15:39:25 -07:00
non-switchable-systems.section.md Revert "NixOS apply script" 2024-11-01 20:18:09 -04:00
option-declarations.section.md nixos/doc: update python39Packages reference 2025-04-13 01:26:42 +02:00
option-def.section.md lib.modules: init test for lib.mkDefinition 2025-04-03 15:03:00 +02:00
option-types.section.md doc/option-types: fix attrTag example 2025-03-27 14:22:53 +01:00
replace-modules.section.md
running-nixos-tests-interactively.section.md nixos/test-driver: exit early if /dev/vhost-vsock isn't available 2025-05-13 11:14:13 +02:00
running-nixos-tests.section.md
settings-options.section.md nixos/doc: fix typos in settings-options section 2025-05-01 19:20:22 +03:00
sources.chapter.md
testing-hardware-features.section.md doc: init Testing Hardware Features section with vwifi 2025-04-20 15:39:25 -07:00
testing-installer.chapter.md
unit-handling.section.md Document the logic around X-NotSocketActivated in the manual 2024-12-09 08:57:47 -05:00
what-happens-during-a-system-switch.chapter.md Revert "NixOS apply script" 2024-11-01 20:18:09 -04:00
writing-documentation.chapter.md nixos/doc: Fix outdated references in the NixOS manual 2025-03-25 19:51:54 +00:00
writing-modules.chapter.md nixos/doc: Split mkdir mode into chmod command for clarity (#236740) 2024-11-01 11:09:52 +08:00
writing-nixos-tests.section.md nixos/test-driver: integrate Python unittest assertions 2025-03-20 12:30:58 +00:00