Skip to content

Commit

Permalink
config(qemu): disable file locking on BIOS
Browse files Browse the repository at this point in the history
In QEMU, when file locking is enabled and supported, the image
file will be opened with O_RDWR even if readonly=on. Due to some
race condition during QEMU startup, sometimes it detects that
locks are supported and in those times, the BIOS read from a read
only bookmark will fail.

Fixes #5523
  • Loading branch information
osy committed Aug 21, 2023
1 parent 9176aba commit e789a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Configuration/UTMQemuConfiguration+Arguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ import Virtualization // for getting network interfaces
"if=pflash"
"format=raw"
"unit=0"
"file="
"file.filename="
bios
"file.locking=off"
"readonly=on"
f()
f("-drive")
Expand Down

0 comments on commit e789a9c

Please sign in to comment.