mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +00:00
acrn-config: modify rootfs tag in board information
1. grap 'ext4' rootfs, and store it as "BLOCK_DEVICE_INFO" tag 2. remove 'Tab' from app tools 3. add support to parse ' ' from scenario xml v1-v2: 1). modify the board info "ROOT_DEVICE_INFO" -> "BLOCK_DEVICE_INFO" Tracked-On: #3602 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Terry Zou <terry.zou@intel.com>
This commit is contained in:
@@ -160,12 +160,12 @@ def dump_system_ram(config):
|
||||
print("", file=config)
|
||||
|
||||
|
||||
def dump_root_dev(config):
|
||||
"""This will get available root device
|
||||
def dump_block_dev(config):
|
||||
"""This will get available block device
|
||||
:param config: file pointer that opened for writing board config information
|
||||
"""
|
||||
cmd = 'blkid'
|
||||
desc = 'ROOT_DEVICE_INFO'
|
||||
desc = 'BLOCK_DEVICE_INFO'
|
||||
parser_lib.dump_execute(cmd, desc, config)
|
||||
print("", file=config)
|
||||
|
||||
@@ -230,7 +230,7 @@ def generate_info(board_info):
|
||||
|
||||
dump_system_ram(config)
|
||||
|
||||
dump_root_dev(config)
|
||||
dump_block_dev(config)
|
||||
|
||||
dump_ttys(config)
|
||||
|
||||
|
Reference in New Issue
Block a user