Fix the bug when booting linx iso (#1600)

This commit is contained in:
longpanda 2022-04-29 19:57:04 +08:00
parent 3d1dc81fda
commit 5f3d7f3823

View File

@ -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