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
61d4248d
Commit
61d4248d
authored
Feb 03, 2021
by
longpanda
Browse files
Optimization for slax-9.11.0 (#725)
parent
dccefc52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
IMG/cpio/ventoy/hook/debian/slax-disk.sh
IMG/cpio/ventoy/hook/debian/slax-disk.sh
+8
-2
IMG/cpio/ventoy/hook/debian/slax-hook.sh
IMG/cpio/ventoy/hook/debian/slax-hook.sh
+5
-1
No files found.
IMG/cpio/ventoy/hook/debian/slax-disk.sh
View file @
61d4248d
...
...
@@ -60,8 +60,6 @@ ventoy_os_install_dmsetup() {
fi
}
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
...
...
@@ -69,6 +67,14 @@ if [ "$vtdiskname" = "unknown" ]; then
exit
0
fi
if
check_usb_disk_ready
"
$vtdiskname
"
;
then
vtlog
"check_usb_disk_ready ok"
else
vtlog
"check_usb_disk_ready error"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_os_install_dmsetup
$vtdiskname
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
...
...
IMG/cpio/ventoy/hook/debian/slax-hook.sh
View file @
61d4248d
...
...
@@ -17,4 +17,8 @@
#
#************************************************************************************
$SED
"/find_data/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/slax-disk.sh"
-i
/init
if
[
-f
/lib/livekitlib
]
&&
$GREP
-q
'debug_log.*find_data_try'
/lib/livekitlib
;
then
$SED
"/debug_log.*find_data_try/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/slax-disk.sh"
-i
/lib/livekitlib
else
$SED
"/find_data/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/debian/slax-disk.sh"
-i
/init
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