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
e1ffbad4
Commit
e1ffbad4
authored
Apr 01, 2021
by
longpanda
Browse files
Support RHEL6/CentOS6 auto install
parent
4a66104c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
IMG/cpio/ventoy/hook/rhel6/ventoy-hook.sh
IMG/cpio/ventoy/hook/rhel6/ventoy-hook.sh
+10
-0
No files found.
IMG/cpio/ventoy/hook/rhel6/ventoy-hook.sh
View file @
e1ffbad4
...
@@ -26,3 +26,13 @@ ventoy_add_udev_rule "$VTOY_PATH/hook/rhel6/udev_disk_hook.sh %k"
...
@@ -26,3 +26,13 @@ ventoy_add_udev_rule "$VTOY_PATH/hook/rhel6/udev_disk_hook.sh %k"
#loop7 was used by loader
#loop7 was used by loader
ventoy_add_kernel_udev_rule
"loop6"
"
$VTOY_PATH
/hook/rhel6/udev_disk_hook.sh %k"
ventoy_add_kernel_udev_rule
"loop6"
"
$VTOY_PATH
/hook/rhel6/udev_disk_hook.sh %k"
if
[
-f
$VTOY_PATH
/autoinstall
]
;
then
$BUSYBOX_PATH
/mv /sbin/loader /sbin/loader_bk
$BUSYBOX_PATH
/mv
$VTOY_PATH
/tool/loader /sbin/loader
RawCmdLine
=
$(
$BUSYBOX_PATH
/cat /proc/cmdline
)
echo
-n
"/sbin/loader_bk"
>
"/ventoy/loader_exec_file"
echo
-n
"--cmdline=
$RawCmdLine
ks=file:
$VTOY_PATH
/autoinstall"
>
"/ventoy/loader_exec_cmdline"
#echo 111 > "/ventoy/loader_debug"
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