diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
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: |