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
d0f3597b
Commit
d0f3597b
authored
Feb 15, 2022
by
longpanda
Browse files
Fix Kiosk boot issue in latest Ventoy release. (#1446)
parent
045f53d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
IMG/cpio/ventoy/init_chain
IMG/cpio/ventoy/init_chain
+8
-2
No files found.
IMG/cpio/ventoy/init_chain
View file @
d0f3597b
...
@@ -78,8 +78,14 @@ ventoy_unpack_initramfs() {
...
@@ -78,8 +78,14 @@ ventoy_unpack_initramfs() {
rm
-f
$VTOY_PATH
/xzlog
rm
-f
$VTOY_PATH
/xzlog
${
vtx
:5
}
$vtfile
2>
$VTOY_PATH
/xzlog |
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
${
vtx
:5
}
$vtfile
2>
$VTOY_PATH
/xzlog |
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
if
grep
-q
'corrupted data'
$VTOY_PATH
/xzlog
;
then
if
grep
-q
'corrupted data'
$VTOY_PATH
/xzlog
;
then
echo
'xzcat failed, now try xzcat_musl ...'
>>
$VTLOG
echo
'xzcat failed, now try xzminidec...'
>>
$VTLOG
xzcat_musl
$vtfile
|
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
rm
-f
$VTOY_PATH
/xzlog
cat
$vtfile
| xzminidec 2>
$VTOY_PATH
/xzlog |
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
if
grep
-q
'limit'
$VTOY_PATH
/xzlog
;
then
echo
'xzminidec failed, now try xzcat_musl ...'
>>
$VTLOG
xzcat_musl
$vtfile
|
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
fi
fi
fi
else
else
${
vtx
:5
}
$vtfile
|
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
${
vtx
:5
}
$vtfile
|
(
cpio
-idmu
2>>
$VTLOG
;
cat
>
$vttmp
)
...
...
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