]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: add QB_ROOTFS_EXTRA_OPT parameter
authorKonrad Weihmann <kweihmann@outlook.com>
Wed, 15 Apr 2020 18:39:31 +0000 (20:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Apr 2020 13:07:54 +0000 (14:07 +0100)
commite9b8c194636cb5505774a2a71bf54450580dd5b8
tree173284c97a4f10e96522a21ad7bcc00021d29d89
parentbeb17254f019a7f72c9ab41298da7bcee6ad8ce8
runqemu: add QB_ROOTFS_EXTRA_OPT parameter

Content of the optional parameter will be appended to the rootfs-device
in the qemu configuration, in case QB_ROOTFS_OPT is not specified.
By default this is empty.

Example use cases are:

Defining 'readonly' when using squashfs, so multiple instances of qemu
can share the same base image, something that cannot be done by just
specifying 'snapshot'.

Defining 'bootindex=0' which helps to get past the EFI shell in
ovmf-binary. This also enables the use case of running WIC images with
EFI bootloader through the testimage.bbclass.

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/qemuboot.bbclass
scripts/runqemu