]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: avoid image file name mismatches
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 9 Sep 2015 15:12:05 +0000 (17:12 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Sep 2015 21:47:22 +0000 (22:47 +0100)
commit29e0aaa7345ca823bb4af2d4a870e98ac75e04e7
tree8b78c276c8d7fa375315046b8c2f28f8cd242339
parentfae697dedf6ab04b7c123ea5615b1003a79c2422
runqemu: avoid image file name mismatches

Giving anything with -image in it as bootparams or in qemuparams (for
example, an additional -drive parameter with an image file or an
"-initrd .../core-image-minimal-initramfs-qemux86.cpio.gz") caused
runqemu to treat these parameters as names of the rootfs image file.

Matching *-image) after checking the current argument for more
specific cases like bootparams and qemuparams avoids this
misinterpretation of the command line parameters.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/runqemu