diff --git a/lib/component.py b/lib/component.py index f579139c124bf43930bf12bc750a2fa5c258f9ec..b187c98b55f3e8417ac99f529185d142e0c7ce90 100644 --- a/lib/component.py +++ b/lib/component.py @@ -60,7 +60,7 @@ class Component(): cases_inst = [] for c_str in val: for c_inst in self.cases: - if set(c_inst.required) & set(['x86', 'arm', 'loongarch']): + if set(c_inst.required) & set(['x86', 'arm', 'loongarch', 'sw_64']): if self.arch not in c_inst.required: no_support_platform_ins.add(c_inst) continue @@ -497,6 +497,9 @@ class Storage(Component): break else: logging.warning('failed to detect the disk for %s' % dk.dev_path) + # check dev_path + if os.system('lsblk -p -l -n |grep -wq %s' % dk.get_property('DEVNAME')): + continue disk_size_gb = get_disk_size(dk.get_property('DEVNAME')) if disk_size_gb < 10: logging.warning('%s size is %sG, skip this disk' % (dk.dev_path, disk_size_gb)) diff --git a/lib/utils.py b/lib/utils.py index d72eb91456d32ab15803fd287d9207c8a6679c6c..a2ba86f6fae4ee02b389adeb4942284fb961844b 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -462,6 +462,8 @@ def get_architecture(): return 'arm' elif 'loongarch' in output.lower(): return 'loongarch' + elif 'sw_64' in output.lower(): + return 'sw_64' raise RunCommandError('Does not support this architecture')