Files
disko/tests
Michael Hoang 4962f0d92f tests: add luks-fido2 install-test
`example/luks-fido2.nix` has been pure example up to now — no
corresponding install-test. Add `tests/luks-fido2.nix` using the
existing `makeDiskoTest` shim, exercising the FIDO2-enrolled LUKS path:

  - `enableCanokey = true` attaches a virtual Canokey to both the
    formatter VM (where disko runs `systemd-cryptenroll
    --fido2-device=auto` during the format phase) and the booted machine
    (where the initrd auto-unlocks LUKS via FIDO2). Canokey emulates a
    FIDO2 token at `/dev/hidraw*` and answers programmatically, so
    neither phase needs a user tap.
  - `extraTestScript` asserts the LUKS volume exists at the expected
    device path and `/` is mounted — which is only true if the initrd's
    FIDO2 unlock succeeded.

Added in the pre-refactor (legacy `makeDiskoTest` function-call) shape
so the subsequent tests/ modulification commit converts it alongside
the other tests in one sweep.
2026-05-18 14:21:23 +02:00
..
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00
2025-02-15 10:08:56 +00:00