From: longpanda Date: Fri, 29 Apr 2022 11:57:04 +0000 (+0800) Subject: Fix the bug when booting linx iso (#1600) X-Git-Tag: v1.0.75~20 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/5f3d7f382383b720cdd3d32d686c2c13dca3510c Fix the bug when booting linx iso (#1600) --- diff --git a/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh b/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh index c46f85b..251f046 100644 --- a/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh +++ b/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh @@ -138,6 +138,14 @@ else fi fi +#special process for Linx +if $BUSYBOX_PATH/uname -r | $GREP -q "^2\.6"; then + if $GREP -q "linx" /proc/version; then + blkdev_num=$($VTOY_PATH/tool/dmsetup ls | $GREP ventoy | $SED 's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1:\2/') + vtDM=$(ventoy_find_dm_id ${blkdev_num}) + echo "/dev/$vtDM" > /ventoy/list-devices-usb-part + fi +fi # OK finish set_ventoy_hook_finish