mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 09:34:24 +01:00
qemu: update readonly flag for block devices
since qemu 6.0, readonly flag for block devices must be enable or disable with `on` or `off` respectively. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -1219,7 +1219,7 @@ func (blkdev BlockDevice) QemuParams(config *Config) []string {
|
||||
blkParams = append(blkParams, fmt.Sprintf("if=%s", blkdev.Interface))
|
||||
|
||||
if blkdev.ReadOnly {
|
||||
blkParams = append(blkParams, "readonly")
|
||||
blkParams = append(blkParams, "readonly=on")
|
||||
}
|
||||
|
||||
qemuParams = append(qemuParams, "-device")
|
||||
|
||||
Reference in New Issue
Block a user