lanzaboote/nix/tests/stub/systemd-stub.nix

21 lines
503 B
Nix

# This test serves as a baseline to make sure that the custom boot installer
# script defined in the ukiModule works with the upstream systemd-stub. When
# this test fails something is very wrong.
{
name = "systemd-stub";
nodes.machine = { pkgs, ... }: {
imports = [ ./common.nix ];
boot.loader.uki.stub = "${pkgs.systemd}/lib/systemd/boot/efi/linux${pkgs.hostPlatform.efiArch}.efi.stub";
};
testScript = ''
machine.start()
print(machine.succeed("bootctl status"))
'';
}