Skip to content

Commit 8f6726d

Browse files
committed
Refactor the iso path, and use the constant
1 parent 6da360e commit 8f6726d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

qemu.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,11 @@ func (d *Driver) Start() error {
380380
startCmd = append(startCmd,
381381
"-m", fmt.Sprintf("%d", d.Memory),
382382
"-smp", fmt.Sprintf("%d", d.CPU),
383-
"-boot", "d",
384-
"-cdrom", filepath.Join(machineDir, "boot2docker.iso"),
383+
"-boot", "d")
384+
var isoPath = filepath.Join(machineDir, isoFilename)
385+
startCmd = append(startCmd,
386+
"-cdrom", isoPath)
387+
startCmd = append(startCmd,
385388
"-qmp", fmt.Sprintf("unix:%s,server,nowait", d.monitorPath()),
386389
"-pidfile", d.pidfilePath(),
387390
)

0 commit comments

Comments
 (0)