]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the bug when booting linx iso (#1600)
authorlongpanda <admin@ventoy.net>
Fri, 29 Apr 2022 11:57:04 +0000 (19:57 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 29 Apr 2022 11:57:04 +0000 (19:57 +0800)
IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh

index c46f85b4b16c9705690dbe2ea01c14d3c5e0ced0..251f046bbf023322745ef5dcce29e827435b777e 100644 (file)
@@ -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