mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
incus: fix CSM support
This commit is contained in:
parent
d7552b8a2d
commit
6cd3dd3c64
2 changed files with 16 additions and 2 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue