diff options
| author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2021-11-12 23:29:18 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-13 16:11:28 +0000 |
| commit | 9c3e6fd9b6d181c522f4cacff274599ad750c23a (patch) | |
| tree | edffe62fbc70ebe4c7233c5fb7e9d370056bcb17 /meta/classes/qemuboot.bbclass | |
| parent | 7ca8dd76eaad52833f5e67d3c707966e19755e92 (diff) | |
| download | poky-9c3e6fd9b6d181c522f4cacff274599ad750c23a.tar.gz | |
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 <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
| -rw-r--r-- | meta/classes/qemuboot.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
| 36 | # in system mode, where system is experiencing entropy starvation | 36 | # in system mode, where system is experiencing entropy starvation |
| 37 | # | 37 | # |
| 38 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda | 38 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda |
| 39 | # By default "/dev/vda rw" gets passed to the kernel. | ||
| 40 | # To mount the rootfs read-only QB_KERNEL_ROOT can be set to e.g. "/dev/vda ro". | ||
| 39 | # | 41 | # |
| 40 | # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", | 42 | # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", |
| 41 | # it needs work with QB_TAP_OPT and QB_SLIRP_OPT. | 43 | # it needs work with QB_TAP_OPT and QB_SLIRP_OPT. |
