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
63924fa8
Commit
63924fa8
authored
Jun 09, 2021
by
longpanda
Browse files
optimize for CRUX
parent
3e47f5e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
IMG/cpio/ventoy/hook/crux/disk_hook.sh
IMG/cpio/ventoy/hook/crux/disk_hook.sh
+5
-4
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
+7
-0
No files found.
IMG/cpio/ventoy/hook/crux/disk_hook.sh
View file @
63924fa8
...
@@ -31,10 +31,11 @@ done
...
@@ -31,10 +31,11 @@ done
ventoy_extract_vtloopex
${
vtdiskname
}
2 crux
ventoy_extract_vtloopex
${
vtdiskname
}
2 crux
vtKver
=
$(
uname
-r
)
vtLoopExDir
=
$VTOY_PATH
/vtloopex/crux/vtloopex
vtLoopExDir
=
$VTOY_PATH
/vtloopex/crux/vtloopex
$BUSYBOX_PATH
/xz
-d
$vtLoopExDir
/dm-mod/
$(
uname
-r
)
/64/dax.ko.xz
$BUSYBOX_PATH
/xz
-d
$vtLoopExDir
/dm-mod/
$(
uname
-r
)
/64/dm-mod.ko.xz
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dax.ko
$BUSYBOX_PATH
/insmod
$vtLoopExDir
/dm-mod/
$(
uname
-r
)
/64/dax.ko
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dm-mod.ko
$BUSYBOX_PATH
/insmod
$vtLoopExDir
/dm-mod/
$(
uname
-r
)
/64/dm-mod.ko
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
View file @
63924fa8
...
@@ -610,3 +610,10 @@ ventoy_extract_vtloopex() {
...
@@ -610,3 +610,10 @@ ventoy_extract_vtloopex() {
cd
$vtCurPwd
cd
$vtCurPwd
}
}
ventoy_check_install_module_xz
()
{
if
[
-f
"
${
1
}
.xz"
]
;
then
$BUSYBOX_PATH
/xz
-d
"
${
1
}
.xz"
$BUSYBOX_PATH
/insmod
"
$1
"
fi
}
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