Fix the issue when booting the latest recalbox img file. (#1423)

This commit is contained in:
longpanda
2022-02-06 00:25:27 +08:00
parent 82e99a3b37
commit 34a36bfc3e
7 changed files with 102 additions and 3 deletions

View File

@@ -36,10 +36,15 @@ if [ "$vtdiskname" = "unknown" ]; then
exit 0
fi
if [ -f $VTOY_PATH/modules/dm-mod.ko ]; then
insmod $VTOY_PATH/modules/dm-mod.ko
fi
ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2" "noreplace"
ventoy_create_dev_ventoy_part
PATH=$VTPATH_OLD
set_ventoy_hook_finish