summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-03-15 12:21:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-16 17:36:10 +0000
commit006ab8c6bcfe9d065c215cab15289357cefc9259 (patch)
tree3e80624aca1faa88313181e78e969b8939ababea /scripts/runqemu
parent5b9ac62ab535d2791b9713857e1016f49f53dd8d (diff)
downloadopenembedded-core-006ab8c6bcfe9d065c215cab15289357cefc9259.tar.gz
runqemu: independent network and rootfs setup
Presently, runqemu sets up rootfs as part of network setup. In case there is no network desired we will end up without rootfs as well. This patch sets up network and rootfs independently. It is also possible to bypass setup of rootfs if QB_ROOTFS is set to "none". Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index c5fa88e341..3e2172434c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -935,6 +935,9 @@ class BaseConfig(object):
else:
self.setup_tap()
+ def setup_rootfs(self):
+ if self.get('QB_ROOTFS') == 'none':
+ return
rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw'
qb_rootfs_opt = self.get('QB_ROOTFS_OPT')
@@ -1167,6 +1170,7 @@ def main():
config.print_config()
try:
config.setup_network()
+ config.setup_rootfs()
config.setup_final()
config.start_qemu()
finally: