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
44b38dce
Commit
44b38dce
authored
Mar 22, 2022
by
longpanda
Browse files
Add support for venomlinux (#1526)
parent
392d8ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
IMG/cpio/ventoy/hook/arch/ventoy-hook.sh
IMG/cpio/ventoy/hook/arch/ventoy-hook.sh
+4
-1
IMG/cpio/ventoy/ventoy_chain.sh
IMG/cpio/ventoy/ventoy_chain.sh
+4
-0
No files found.
IMG/cpio/ventoy/hook/arch/ventoy-hook.sh
View file @
44b38dce
...
...
@@ -20,7 +20,7 @@
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
if
$GREP
-q
'^"$mount_handler"'
/init
;
then
echo
'use mount_handler ...'
>>
$VTLOG
echo
'use mount_handler
1
...'
>>
$VTLOG
vthookfile
=
/hooks/archiso
...
...
@@ -37,6 +37,9 @@ if $GREP -q '^"$mount_handler"' /init; then
if
[
-f
$vthookfile
]
;
then
$SED
'/while ! poll_device "${dev}"/a\ if /ventoy/busybox/sh /ventoy/hook/arch/ventoy-timeout.sh ${dev}; then break; fi'
-i
$vthookfile
fi
elif
$GREP
-q
'^$mount_handler'
/init
;
then
echo
'use mount_handler2 ...'
>>
$VTLOG
$SED
"/^
\$
mount_handler/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/arch/ventoy-disk.sh"
-i
/init
elif
$GREP
-q
'^KEEP_SEARCHING'
/init
;
then
echo
'KEEP_SEARCHING found ...'
>>
$VTLOG
...
...
IMG/cpio/ventoy/ventoy_chain.sh
View file @
44b38dce
...
...
@@ -342,6 +342,10 @@ ventoy_get_os_type() {
echo
"openEuler"
;
return
fi
if
$GREP
-q
'venom'
/proc/version
;
then
echo
"arch"
;
return
fi
echo
"default"
}
...
...
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