mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
incus: fix CSM support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user