lima icon indicating copy to clipboard operation
lima copied to clipboard

short-form boolean option 'readonly' deprecated

Open ashwat287 opened this issue 1 year ago • 2 comments

Description

Looks like there is an instance of depreciated readonly which needs to be updated to readonly=on

Got the following warning in the file .lima/default/ha.stderr.log after running the command limactl start

{"level":"debug","msg":"qemu[stderr]: qemu-system-x86_64: -virtfs local,mount_tag=mount0,path=/home/<USER>,security_model=none,readonly: warning: short-form boolean option 'readonly' deprecated","time":"2025-09-16T19:32:52Z"}

ashwat287 avatar Sep 16 '25 19:09 ashwat287

Possibly, but you will have to prove first that the replacement option is compatible with all versions of QEMU supported by Lima.

The deprecation warning does not really break anything, and we have other places, like cloud-init options, where we intentionally continue to use the deprecated form to maintain backwards compatibility. We only really have to consider changing once the deprecated form is no longer supported in the latest releases.

jandubois avatar Sep 16 '25 19:09 jandubois

I just checked we are actually using the updated version of the option for cloud-init: pkg/driver/qemu/qemu.go

ashwat287 avatar Sep 16 '25 20:09 ashwat287