]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/debian/slax-disk.sh
Disable Fn/L/Ctrl hotkeys on select WIM menu.
[Ventoy.git] / IMG / cpio / ventoy / hook / debian / slax-disk.sh
index 0e0cbfb96b66ebeaf2602980bcd82d5db68c870f..f38c24bab304579e56b5ccd8cd699bd95cf32049 100644 (file)
@@ -60,8 +60,6 @@ ventoy_os_install_dmsetup() {
     fi
 }
 
-wait_for_usb_disk_ready
-
 vtdiskname=$(get_ventoy_disk_name)
 if [ "$vtdiskname" = "unknown" ]; then
     vtlog "ventoy disk not found"
@@ -69,6 +67,14 @@ if [ "$vtdiskname" = "unknown" ]; then
     exit 0
 fi
 
+if check_usb_disk_ready "$vtdiskname"; then
+    vtlog "check_usb_disk_ready ok"
+else
+    vtlog "check_usb_disk_ready error"
+    PATH=$VTPATH_OLD
+    exit 0
+fi
+
 ventoy_os_install_dmsetup $vtdiskname
 
 ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2" "noreplace"