Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
89addae4
Commit
89addae4
authored
Apr 18, 2022
by
longpanda
Browse files
Fix the issue when booting Prime OS 2.1.0 (#1580)
parent
682e8cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
IMG/cpio/ventoy/hook/primeos/ventoy-hook.sh
IMG/cpio/ventoy/hook/primeos/ventoy-hook.sh
+9
-2
No files found.
IMG/cpio/ventoy/hook/primeos/ventoy-hook.sh
View file @
89addae4
...
@@ -21,5 +21,12 @@
...
@@ -21,5 +21,12 @@
$BUSYBOX_PATH
/mkdir /dev
$BUSYBOX_PATH
/mkdir /dev
$SED
'/Detecting *PrimeOS/a\ ROOT=$(cat /ventoy/rootdev)'
-i
/init
if
$GREP
-q
'Detecting *PrimeOS'
/init
;
then
$SED
"/Detecting *PrimeOS/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/primeos/ventoy-disk.sh"
-i
/init
$SED
'/Detecting *PrimeOS/a\ ROOT=$(cat /ventoy/rootdev)'
-i
/init
$SED
"/Detecting *PrimeOS/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/primeos/ventoy-disk.sh"
-i
/init
elif
$GREP
-q
'Detecting *PRIMEOS'
/init
;
then
$SED
'/Detecting *PRIMEOS/a\ ROOT=$(cat /ventoy/rootdev)'
-i
/init
$SED
"/Detecting *PRIMEOS/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/hook/primeos/ventoy-disk.sh"
-i
/init
else
echo
"not detecting found"
>>
$VTLOG
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