Signed-off-by: Bai Jing 799286817@qq.com --- tests/host-info | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/host-info b/tests/host-info index 86b49cf9a..af0ab5777 100755 --- a/tests/host-info +++ b/tests/host-info @@ -58,7 +58,8 @@ get_part() count=$(echo $info | tr ' ' '\n' | wc -l) partition=$(echo $info | tr ' ' '\n' | uniq) if [ $count -gt 1 ]; then - parts=$(echo /dev/disk/by-id/$partition-part*) + parts=$(ls /dev/disk/by-id/$partition-part*) + echo " -" /dev/disk/by-id/$partition for i in $parts do echo " -" $i