Skip to content

Commit d6e1730

Browse files
committed
Fix the install issue for /dev/mdX device. (ventoy#2846)
1 parent 4d55f50 commit d6e1730

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

INSTALL/tool/ventoy_lib.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ get_disk_part_name() {
9494
echo ${DISK}p${2}
9595
elif echo $DISK | grep -q "/dev/zd[0-9]"; then
9696
echo ${DISK}p${2}
97+
elif echo $DISK | grep -q "/dev/md[0-9]"; then
98+
echo ${DISK}p${2}
9799
else
98100
echo ${DISK}${2}
99101
fi
@@ -211,14 +213,14 @@ get_disk_ventoy_version() {
211213
wait_and_create_part() {
212214
vPART1=$1
213215
vPART2=$2
214-
echo 'Wait for partitions ...'
216+
echo 'Wait for partitions $vPART1 and $vPART2 ...'
215217
for i in 0 1 2 3 4 5 6 7 8 9; do
216218
if ls -l $vPART1 2>/dev/null | grep -q '^b'; then
217219
if ls -l $vPART2 2>/dev/null | grep -q '^b'; then
218220
break
219221
fi
220222
else
221-
echo "Wait for $vPART1/$vPART2 ..."
223+
echo "Wait for $vPART1 and $vPART2 ..."
222224
sleep 1
223225
fi
224226
done

0 commit comments

Comments
 (0)