Skip to content

Commit

Permalink
1.0.64
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Jan 8, 2022
1 parent 1f49265 commit b8e624b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,17 @@ ventoy_dm_patch() {


vtKv=$($BUSYBOX_PATH/uname -r)
vtModPath=$($FIND /lib/modules/$vtKv/kernel/fs/ -name "*.ko*" | $HEAD -n1)

if [ -d /lib/modules/$vtKv/kernel/fs ]; then
vtModPath=$($FIND /lib/modules/$vtKv/kernel/fs/ -name "*.ko*" | $HEAD -n1)
else
vtModPath=$($FIND /lib/modules/$vtKv/kernel/ -name "xfs.ko*" | $HEAD -n1)
fi

if [ -z "$vtModPath" ]; then
vtModPath=$($FIND /lib/modules/$vtKv/kernel/ -name "*.ko*" | $HEAD -n1)
fi

vtModName=$($BUSYBOX_PATH/basename $vtModPath)

vtlog "template module is $vtModPath $vtModName"
Expand Down

0 comments on commit b8e624b

Please sign in to comment.