acrn-config: refine mount device for virtio-blk

Previous launch config tool doesn't handle the situation that
'virtio-blk' is set with rootfs partition with rootfs image,
in such scenario, VM would be failed to start when launching
This patch refine the mount device while use rootfs partiton and image
from vritio block device.

Tracked-On: #4248
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu
2019-12-18 16:49:37 +08:00
committed by wenlingz
parent fc357a7782
commit 7f74e6e9a9
4 changed files with 79 additions and 27 deletions

View File

@@ -156,3 +156,6 @@ class VirtioDeviceSelect():
self.dev["block"] = launch_cfg_lib.get_leaf_tag_map(self.launch_info, "virtio_devices", "block")
self.dev["network"] = launch_cfg_lib.get_leaf_tag_map(self.launch_info, "virtio_devices", "network")
self.dev["console"] = launch_cfg_lib.get_leaf_tag_map(self.launch_info, "virtio_devices", "console")
def check_virtio(self):
launch_cfg_lib.check_block_mount(self.dev["block"])