incus: fix CSM support

This commit is contained in:
Adam C. Stephens 2024-12-18 22:48:41 -05:00
commit 6cd3dd3c64
No known key found for this signature in database
2 changed files with 16 additions and 2 deletions

View file

@ -108,6 +108,10 @@ let
name = "OVMF_VARS.4MB.ms.fd";
path = "${pkgs.OVMFFull.fd}/FV/${ovmf-prefix}_VARS.fd";
}
{
name = "seabios.bin";
path = "${pkgs.seabios-qemu}/share/seabios/bios.bin";
}
];
environment = lib.mkMerge [

View file

@ -307,7 +307,7 @@ import ../make-test-python.nix (
) "" initVariants
)
+ lib.optionalString canTestVm (
lib.foldl (
(lib.foldl (
acc: variant:
acc
# python
@ -362,7 +362,17 @@ import ../make-test-python.nix (
cleanup()
''
) "" initVariants
) "" initVariants)
+
# python
''
with subtest("Can launch CSM virtual machine"):
machine.succeed("incus init csm --vm --empty -c security.csm=true -c security.secureboot=false")
machine.succeed("incus start csm")
cleanup()
''
)
+
lib.optionalString featureUser # python