Skip to content

Commit

Permalink
Merge pull request #12249 from tomponline/tp-cherrypick
Browse files Browse the repository at this point in the history
lxd/instance/qemu: Avoid old -bios syntax
  • Loading branch information
tomponline authored Sep 13, 2023
2 parents 5f98389 + f47e759 commit 3fe1b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -7965,7 +7965,7 @@ func (d *qemu) checkFeatures(hostArch int, qemuPath string) (map[string]any, err
}

if d.architectureSupportsUEFI(hostArch) {
qemuArgs = append(qemuArgs, "-bios", filepath.Join(d.ovmfPath(), "OVMF_CODE.fd"))
qemuArgs = append(qemuArgs, "-drive", fmt.Sprintf("if=pflash,format=raw,readonly=on,file=%s", filepath.Join(d.ovmfPath(), "OVMF_CODE.fd")))
}

var stderr bytes.Buffer
Expand Down

0 comments on commit 3fe1b06

Please sign in to comment.