mirror of https://github.com/ventoy/Ventoy.git
add debug info
This commit is contained in:
parent
667f5bcc1b
commit
f383052013
|
@ -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() {
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue