summaryrefslogtreecommitdiffstats
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 22:11:32 +0000
commit68e57fa7480fb7df0e7504df4ed75f2b4719786e (patch)
treeff5adb61838aaa4a13325b5e2656d49f8d662d97
parentef0c54ab70d22be9ba04e7648684fac5c043c5af (diff)
downloadpoky-68e57fa7480fb7df0e7504df4ed75f2b4719786e.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". (From OE-Core rev: 006ab8c6bcfe9d065c215cab15289357cefc9259) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
935 else: 935 else:
936 self.setup_tap() 936 self.setup_tap()
937 937
938 def setup_rootfs(self):
939 if self.get('QB_ROOTFS') == 'none':
940 return
938 rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw' 941 rootfs_format = self.fstype if self.fstype in ('vmdk', 'qcow2', 'vdi') else 'raw'
939 942
940 qb_rootfs_opt = self.get('QB_ROOTFS_OPT') 943 qb_rootfs_opt = self.get('QB_ROOTFS_OPT')
@@ -1167,6 +1170,7 @@ def main():
1167 config.print_config() 1170 config.print_config()
1168 try: 1171 try:
1169 config.setup_network() 1172 config.setup_network()
1173 config.setup_rootfs()
1170 config.setup_final() 1174 config.setup_final()
1171 config.start_qemu() 1175 config.start_qemu()
1172 finally: 1176 finally: