Commit f3830520 authored by longpanda's avatar longpanda
Browse files

add debug info

parent 667f5bcc
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment