-
- vtlog "find ventoy partition ..."
- $BUSYBOX_PATH/sh $VTOY_PATH/hook/default/udev_disk_hook.sh $3 noreplace
-
- 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})
-
- if [ "$vtDM" = "dm-0" ]; then
- vtlog "This is dm-0, OK ..."
- else
- vtlog "####### This is $vtDM ####### this is abnormal ..."
- ventoy_swap_device /dev/dm-0 /dev/$vtDM
- fi