Commit 5f3d7f38 authored by longpanda's avatar longpanda
Browse files

Fix the bug when booting linx iso (#1600)

parent 3d1dc81f
...@@ -138,6 +138,14 @@ else ...@@ -138,6 +138,14 @@ else
fi fi
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 # OK finish
set_ventoy_hook_finish set_ventoy_hook_finish
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment