X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d61798509356f4d5efc952b83a9b460a7b193108..7f63a1c327399e1ea8fce9ba8778685f737da795:/IMG/cpio/ventoy/hook/suse/udev_disk_hook.sh diff --git a/IMG/cpio/ventoy/hook/suse/udev_disk_hook.sh b/IMG/cpio/ventoy/hook/suse/udev_disk_hook.sh index 67f3692..d5e8170 100644 --- a/IMG/cpio/ventoy/hook/suse/udev_disk_hook.sh +++ b/IMG/cpio/ventoy/hook/suse/udev_disk_hook.sh @@ -54,6 +54,21 @@ if [ -z "$dmsetup_path" ]; then ventoy_os_install_dmsetup "/dev/${1:0:-1}" fi +if [ -f /proc/devices ]; then + vtlog "/proc/devices exist OK" +else + for i in 1 2 3 4 5 6 7 8 9; do + if [ -f /proc/devices ]; then + vtlog "/proc/devices exist OK now" + break + else + vtlog "/proc/devices NOT exist, wait $i" + $BUSYBOX_PATH/sleep 1 + fi + done +fi + + ventoy_udev_disk_common_hook $* # OK finish