docs: automate gif generation
This commit is contained in:
1 parent
a39797cbd2
commit
04219bb58e
18 files changed
+375
-153
No files matched your search
@@ -0,0 +1,31 @@
|
||||
{ demoHost }:
|
||||
{
|
||||
name = "bootvine";
|
||||
|
||||
nodes.machine =
|
||||
{ lib, ... }:
|
||||
let
|
||||
waitFor = flag: "/bin/sh -c 'until [ -e /run/${flag} ]; do sleep 0.1; done'";
|
||||
in
|
||||
{
|
||||
imports = [ demoHost ];
|
||||
testing.initrdBackdoor = true;
|
||||
boot.initrd.systemd.services.demo-initrd-probe.serviceConfig.ExecStart = lib.mkForce (
|
||||
waitFor "release-initrd-probe"
|
||||
);
|
||||
systemd = {
|
||||
settings.Manager.ShowStatus = lib.mkForce true;
|
||||
services.demo-db.serviceConfig.ExecStop = lib.mkForce (waitFor "release-demo-db");
|
||||
services.backdoor.before = [ "demo-db.service" ];
|
||||
};
|
||||
virtualisation = {
|
||||
memorySize = 2048;
|
||||
qemu.options = [
|
||||
"-vga none"
|
||||
"-device virtio-vga,xres=1280,yres=800"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
testScript = builtins.readFile ./console.py + builtins.readFile ./boot.py;
|
||||
}
|
||||
Reference in new issue
Block a user