Skip to content

Commit

Permalink
Update platform/machine/qemu/cluster.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremi Piotrowski <[email protected]>
  • Loading branch information
pothos and jepio authored Apr 19, 2024
1 parent 473af26 commit fdd5cc5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions platform/machine/qemu/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,10 @@ ExecStartPost=/usr/bin/ln -fs /run/metadata/flatcar /run/metadata/coreos

// This uses path arguments with path values being
// relative to the folder created for this machine
biosImage := qc.flight.opts.BIOSImage
if !strings.HasPrefix(biosImage, "/") {
cwd, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("getting cwd: %v", err)
}
biosImage = filepath.Join(cwd, biosImage)
}
biosImage, err := filepath.Abs(qc.flight.opts.BIOSImage)
if err != nil {
return nil, fmt.Errorf("failed to canonicalize bios path: %v", err)
}
qmCmd, extraFiles, err := platform.CreateQEMUCommand(qc.flight.opts.Board, qm.id, biosImage, qm.consolePath, confPath, qc.flight.diskImagePath, conf.IsIgnition(), options)
if err != nil {
return nil, err
Expand Down

0 comments on commit fdd5cc5

Please sign in to comment.