mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-11-15 18:13:33 +00:00
1.0.64
This commit is contained in:
parent
1f49265f29
commit
b8e624b0a0
@ -309,7 +309,17 @@ ventoy_dm_patch() {
|
|||||||
|
|
||||||
|
|
||||||
vtKv=$($BUSYBOX_PATH/uname -r)
|
vtKv=$($BUSYBOX_PATH/uname -r)
|
||||||
|
|
||||||
|
if [ -d /lib/modules/$vtKv/kernel/fs ]; then
|
||||||
vtModPath=$($FIND /lib/modules/$vtKv/kernel/fs/ -name "*.ko*" | $HEAD -n1)
|
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)
|
vtModName=$($BUSYBOX_PATH/basename $vtModPath)
|
||||||
|
|
||||||
vtlog "template module is $vtModPath $vtModName"
|
vtlog "template module is $vtModPath $vtModName"
|
||||||
|
Loading…
Reference in New Issue
Block a user