Skip to content

Commit 67b092d

Browse files
committed
Remove deprication warning
for using nowait, readonly & server as boolean parameters Signed-off-by: Jonas Peterburs <[email protected]> Signed-off-by: stealthyV1per <[email protected]>
1 parent 489280e commit 67b092d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/qemu/qemu.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func Cmdline(cfg Config) (string, []string, error) {
231231
if err != nil {
232232
return "", nil, err
233233
}
234-
args = append(args, "-drive", fmt.Sprintf("if=pflash,format=raw,readonly,file=%s", firmware))
234+
args = append(args, "-drive", fmt.Sprintf("if=pflash,format=raw,readonly=on,file=%s", firmware))
235235
} else if y.Arch != limayaml.X8664 {
236236
logrus.Warnf("field `firmware.legacyBIOS` is not supported for architecture %q, ignoring", y.Arch)
237237
}
@@ -330,7 +330,7 @@ func Cmdline(cfg Config) (string, []string, error) {
330330
return "", nil, err
331331
}
332332
const serialChardev = "char-serial"
333-
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server,nowait,logfile=%s", serialChardev, serialSock, serialLog))
333+
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server=on,wait=off,logfile=%s", serialChardev, serialSock, serialLog))
334334
args = append(args, "-serial", "chardev:"+serialChardev)
335335

336336
// We also want to enable vsock and virtfs here, but QEMU does not support vsock and virtfs for macOS hosts
@@ -341,7 +341,7 @@ func Cmdline(cfg Config) (string, []string, error) {
341341
return "", nil, err
342342
}
343343
const qmpChardev = "char-qmp"
344-
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server,nowait", qmpChardev, qmpSock))
344+
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server=on,wait=off", qmpChardev, qmpSock))
345345
args = append(args, "-qmp", "chardev:"+qmpChardev)
346346

347347
// QEMU process

0 commit comments

Comments
 (0)