Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
d6e1730c
Commit
d6e1730c
authored
May 23, 2024
by
longpanda
Browse files
Fix the install issue for /dev/mdX device. (#2846)
parent
4d55f505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
INSTALL/tool/ventoy_lib.sh
INSTALL/tool/ventoy_lib.sh
+4
-2
No files found.
INSTALL/tool/ventoy_lib.sh
View file @
d6e1730c
...
...
@@ -94,6 +94,8 @@ get_disk_part_name() {
echo
${
DISK
}
p
${
2
}
elif
echo
$DISK
|
grep
-q
"/dev/zd[0-9]"
;
then
echo
${
DISK
}
p
${
2
}
elif
echo
$DISK
|
grep
-q
"/dev/md[0-9]"
;
then
echo
${
DISK
}
p
${
2
}
else
echo
${
DISK
}${
2
}
fi
...
...
@@ -211,14 +213,14 @@ get_disk_ventoy_version() {
wait_and_create_part
()
{
vPART1
=
$1
vPART2
=
$2
echo
'Wait for partitions ...'
echo
'Wait for partitions
$vPART1 and $vPART2
...'
for
i
in
0 1 2 3 4 5 6 7 8 9
;
do
if
ls
-l
$vPART1
2>/dev/null |
grep
-q
'^b'
;
then
if
ls
-l
$vPART2
2>/dev/null |
grep
-q
'^b'
;
then
break
fi
else
echo
"Wait for
$vPART1
/
$vPART2
..."
echo
"Wait for
$vPART1
and
$vPART2
..."
sleep
1
fi
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment