diff options
author | Sergei Zhmylev <s.zhmylev@yadro.com> | 2022-11-18 16:30:20 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-22 12:26:45 +0000 |
commit | bc462b0fcc218434d135ce554ac828f39e6799de (patch) | |
tree | deba564a5d2c33b4f8090b29111eb7e4e0bc02fc /meta/lib | |
parent | 0966ae116693a8a824617ab121845424677e6db0 (diff) | |
download | poky-bc462b0fcc218434d135ce554ac828f39e6799de.tar.gz |
oeqa/qemurunner: implement vmdk images support
Qemurunner should not pass rootfs to runqemu in case
rootfs is not a filesystem itself. Some images could
be built into some disk format like vmdk and this
commit makes qemurunner handle such images properly.
(From OE-Core rev: 5aea74046cf4c1aa7fa9e2402788d662268ccf53)
Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index f175f8a1de..df546c7bdd 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -177,7 +177,11 @@ class QemuRunner: | |||
177 | launch_cmd += ' slirp' | 177 | launch_cmd += ' slirp' |
178 | if self.use_ovmf: | 178 | if self.use_ovmf: |
179 | launch_cmd += ' ovmf' | 179 | launch_cmd += ' ovmf' |
180 | launch_cmd += ' %s %s %s' % (runqemuparams, self.machine, self.rootfs) | 180 | launch_cmd += ' %s %s' % (runqemuparams, self.machine) |
181 | if self.rootfs.endswith('.vmdk'): | ||
182 | self.logger.debug('Bypassing VMDK rootfs for runqemu') | ||
183 | else: | ||
184 | launch_cmd += ' %s' % (self.rootfs) | ||
181 | 185 | ||
182 | return self.launch(launch_cmd, qemuparams=qemuparams, get_ip=get_ip, extra_bootparams=extra_bootparams, env=env) | 186 | return self.launch(launch_cmd, qemuparams=qemuparams, get_ip=get_ip, extra_bootparams=extra_bootparams, env=env) |
183 | 187 | ||