tests: check whether our UKIs are recognized

This commit is contained in:
Julian Stecklina 2024-02-10 20:52:22 +01:00
parent f2bc0af580
commit 14afe7ce9b
1 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,10 @@ in
testScript = ''
machine.start()
assert "Secure Boot: enabled (user)" in machine.succeed("bootctl status")
# We want systemd to recognize our PE binaries as true UKIs. systemd has
# become more picky in the past, so make sure.
assert "Kernel Type: uki" in machine.succeed("bootctl kernel-inspect /boot/EFI/Linux/nixos-generation-1-*.efi")
'';
};