Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
b8e624b0
Commit
b8e624b0
authored
Jan 08, 2022
by
longpanda
Browse files
1.0.64
parent
1f49265f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
+11
-1
No files found.
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
View file @
b8e624b0
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment