[oe-commits] [openembedded-core] 01/05: runqemu: independent network and rootfs setup

git at git.openembedded.org git at git.openembedded.org
Wed Mar 15 23:29:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 7a71e3fe391550845a09c2bd6acbc516dadb8203
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Wed Mar 15 12:21:16 2017 -0700

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/runqemu b/scripts/runqemu
index c5fa88e..3e21724 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list