Skip to content

Commit

Permalink
oeqa/qemurunner: implement vmdk images support
Browse files Browse the repository at this point in the history
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: 7d868424545d1dd067929c05b48e2b6fdbc2ad02)

Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
zhmylove-yadro authored and alexandrebelloni committed Nov 18, 2022
1 parent 4467444 commit ab4bd28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meta/lib/oeqa/utils/qemurunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ def start(self, qemuparams = None, get_ip = True, extra_bootparams = None, runqe
launch_cmd += ' slirp'
if self.use_ovmf:
launch_cmd += ' ovmf'
launch_cmd += ' %s %s %s' % (runqemuparams, self.machine, self.rootfs)
launch_cmd += ' %s %s' % (runqemuparams, self.machine)
if self.rootfs.endswith('.vmdk'):
self.logger.debug('Bypassing VMDK rootfs for runqemu')
else:
launch_cmd += ' %s' % (self.rootfs)

return self.launch(launch_cmd, qemuparams=qemuparams, get_ip=get_ip, extra_bootparams=extra_bootparams, env=env)

Expand Down

0 comments on commit ab4bd28

Please sign in to comment.