Skip to content

Commit

Permalink
hyperv: skip for setting secure boot for gen1 vhd
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Mar 3, 2024
1 parent 974aabc commit 4e8ed16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisa/tools/hyperv.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def create_vm(
)

# disable secure boot if requested
if not secure_boot:
# secure boot is only supported for generation 2 VMs
if not secure_boot and generation == 2:
self._run_hyperv_cmdlet(
"Set-VMFirmware",
f"-VMName {name} -EnableSecureBoot Off",
Expand Down

0 comments on commit 4e8ed16

Please sign in to comment.