Skip to content

Commit

Permalink
Merge pull request #12564 from mihalicyn/edk2_csm_bootorder
Browse files Browse the repository at this point in the history
VM: Support bootorder in edk2 CSM mode
  • Loading branch information
tomponline authored Nov 28, 2023
2 parents 4d95237 + f3a5e8a commit b373fce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lxd/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,11 @@ func (d *qemu) start(stateful bool, op *operationlock.InstanceOperation) error {
qemuCmd = append(qemuCmd, "-debugcon", "file:"+d.EDK2LogFilePath(), "-global", "isa-debugcon.iobase=0x402")
}

// This feature specific to the snap-shipped CSM edk2 version, because we have a custom patch to make it work.
if shared.InSnap() && shared.IsTrue(d.expandedConfig["security.csm"]) {
qemuCmd = append(qemuCmd, "-fw_cfg", "name=opt/com.canonical.lxd/force_csm,string=yes")
}

// If stateful, restore now.
if stateful {
if !d.stateful {
Expand Down

0 comments on commit b373fce

Please sign in to comment.