From 9c3e6fd9b6d181c522f4cacff274599ad750c23a Mon Sep 17 00:00:00 2001 From: Adrian Freihofer Date: Fri, 12 Nov 2021 23:29:18 +0100 Subject: runqemu: support rootfs mounted ro Optionally allow to set QB_KERNEL_ROOT to e.g. "/dev/vda ro" to mount the rootfs reay-only in Qemu. (From OE-Core rev: 448eb1fd21287ba16b17e9402ce040b86ae3638c) Signed-off-by: Adrian Freihofer Signed-off-by: Richard Purdie --- meta/classes/qemuboot.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta') diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index bf529e9aa4..8cdb544a94 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass @@ -36,6 +36,8 @@ # in system mode, where system is experiencing entropy starvation # # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda +# By default "/dev/vda rw" gets passed to the kernel. +# To mount the rootfs read-only QB_KERNEL_ROOT can be set to e.g. "/dev/vda ro". # # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", # it needs work with QB_TAP_OPT and QB_SLIRP_OPT. -- cgit v1.2.3-54-g00ecf