]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 26 Jun 2020 21:53:05 +0000 (11:53 -1000)
commit1a5cb1bd56be2b784208516a7c73c49906c7022f
tree01ae00c6f6a53675d65b1397b002bc511033c8d9
parent394d90efdc8d06dc61114bf6279ba6d094667289
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>
(cherry picked from commit e9b8c194636cb5505774a2a71bf54450580dd5b8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/qemuboot.bbclass
scripts/runqemu