Failed jobs keep their kind: units that broke or timed out get a failure panel entry with the reason systemd reports (exit status, signal, timeout, start limit, status text) and their last journal lines read through libsystemd. Units that failed only through a dependency are dimmed and left out of the panel, and units that crash after starting count as failed. Restructure the repository around this: - move the library and binary into bootvine/ and the scripted demos into their own unpublished scripted-demos crate, with their VHS tapes - move the crane builds and NixOS module into nix/ - group each sample VM with its check under vm-tests/, adding text-console, scripted-initrd, encrypted-volume and failures machines and a vm-failures check - add docs/guide.md walking through the screen with every recording, keep one recording in the README, and re-render all recordings
25 lines
526 B
Nix
25 lines
526 B
Nix
{ machine, pkgs }:
|
|
let
|
|
secretDisk = import ./secret-disk.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
name = "bootvine-luks-passphrase";
|
|
nodes.machine = {
|
|
imports = [ machine ];
|
|
|
|
testing.initrdBackdoor = true;
|
|
|
|
virtualisation.qemu.options = [
|
|
"-vga none"
|
|
"-device virtio-vga,xres=1280,yres=800"
|
|
];
|
|
virtualisation.qemu.drives = [ secretDisk.qemuDrive ];
|
|
};
|
|
|
|
testScript = ''
|
|
PASSPHRASE = "${secretDisk.passphrase}"
|
|
''
|
|
+ builtins.readFile ../shared/console.py
|
|
+ builtins.readFile ./check.py;
|
|
}
|