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
f3830520
Commit
f3830520
authored
Jun 20, 2021
by
longpanda
Browse files
add debug info
parent
667f5bcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
+19
-11
No files found.
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
View file @
f3830520
...
@@ -83,6 +83,7 @@ get_ventoy_iso_name() {
...
@@ -83,6 +83,7 @@ get_ventoy_iso_name() {
}
}
wait_for_usb_disk_ready
()
{
wait_for_usb_disk_ready
()
{
vtloop
=
0
while
[
-n
"Y"
]
;
do
while
[
-n
"Y"
]
;
do
usb_disk
=
$(
get_ventoy_disk_name
)
usb_disk
=
$(
get_ventoy_disk_name
)
vtlog
"wait_for_usb_disk_ready
$usb_disk
..."
vtlog
"wait_for_usb_disk_ready
$usb_disk
..."
...
@@ -97,11 +98,18 @@ wait_for_usb_disk_ready() {
...
@@ -97,11 +98,18 @@ wait_for_usb_disk_ready() {
vtlog
"wait_for_usb_disk_ready
$usb_disk
finish"
vtlog
"wait_for_usb_disk_ready
$usb_disk
finish"
break
break
else
else
let
vtloop
=
vtloop+1
if
[
$vtloop
-gt
2
]
;
then
if
[
"
$VTLOG
"
!=
"
$VTOY_PATH
/log"
]
;
then
$VTOY_PATH
/tool/vtoydump
-f
/ventoy/ventoy_os_param
-v
>
$VTLOG
fi
fi
$SLEEP
0.3
$SLEEP
0.3
fi
fi
done
done
}
}
check_usb_disk_ready
()
{
check_usb_disk_ready
()
{
if
echo
$1
|
$EGREP
-q
"nvme|mmc|nbd"
;
then
if
echo
$1
|
$EGREP
-q
"nvme|mmc|nbd"
;
then
vtpart2
=
${
1
}
p2
vtpart2
=
${
1
}
p2
...
...
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