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
069342ab
Commit
069342ab
authored
Jul 27, 2021
by
longpanda
Browse files
change ownership when cpio pack
parent
32a964ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
IMG/mkcpio.sh
IMG/mkcpio.sh
+9
-9
IMG/mkloopex.sh
IMG/mkloopex.sh
+1
-1
No files found.
IMG/mkcpio.sh
View file @
069342ab
...
@@ -21,19 +21,19 @@ ln -s sbin/init linuxrc
...
@@ -21,19 +21,19 @@ ln -s sbin/init linuxrc
cd
ventoy
cd
ventoy
find ./loop | cpio
-o
-H
newc>loop.cpio
find ./loop | cpio
-o
-H
newc
--owner
=
root:root
>
loop.cpio
xz loop.cpio
xz loop.cpio
rm
-rf
loop
rm
-rf
loop
xz ventoy_chain.sh
xz ventoy_chain.sh
xz ventoy_loop.sh
xz ventoy_loop.sh
find ./hook | cpio
-o
-H
newc>hook.cpio
find ./hook | cpio
-o
-H
newc
--owner
=
root:root
>
hook.cpio
xz hook.cpio
xz hook.cpio
rm
-rf
hook
rm
-rf
hook
cd
..
cd
..
find .| cpio
-o
-H
newc>../ventoy.cpio
find .| cpio
-o
-H
newc
--owner
=
root:root
>
../ventoy.cpio
cd
..
cd
..
rm
-rf
cpio_tmp
rm
-rf
cpio_tmp
...
@@ -64,12 +64,12 @@ cp -a $VENTOY_PATH/LZIP/lunzip64 tool/
...
@@ -64,12 +64,12 @@ cp -a $VENTOY_PATH/LZIP/lunzip64 tool/
chmod
-R
777 ./tool
chmod
-R
777 ./tool
find ./tool | cpio
-o
-H
newc>tool.cpio
find ./tool | cpio
-o
-H
newc
--owner
=
root:root
>
tool.cpio
xz tool.cpio
xz tool.cpio
rm
-rf
tool
rm
-rf
tool
cd
..
cd
..
find .| cpio
-o
-H
newc>../ventoy_x86.cpio
find .| cpio
-o
-H
newc
--owner
=
root:root
>
../ventoy_x86.cpio
cd
..
cd
..
rm
-rf
cpio_tmp
rm
-rf
cpio_tmp
...
@@ -95,12 +95,12 @@ cp -a $VENTOY_PATH/LZIP/lunzipaa64 tool/
...
@@ -95,12 +95,12 @@ cp -a $VENTOY_PATH/LZIP/lunzipaa64 tool/
chmod
-R
777 ./tool
chmod
-R
777 ./tool
find ./tool | cpio
-o
-H
newc>tool.cpio
find ./tool | cpio
-o
-H
newc
--owner
=
root:root
>
tool.cpio
xz tool.cpio
xz tool.cpio
rm
-rf
tool
rm
-rf
tool
cd
..
cd
..
find .| cpio
-o
-H
newc>../ventoy_arm64.cpio
find .| cpio
-o
-H
newc
--owner
=
root:root
>
../ventoy_arm64.cpio
cd
..
cd
..
rm
-rf
cpio_tmp
rm
-rf
cpio_tmp
...
@@ -127,12 +127,12 @@ rm -f tool/vtoytool/00/vtoytool_aa64
...
@@ -127,12 +127,12 @@ rm -f tool/vtoytool/00/vtoytool_aa64
chmod
-R
777 ./tool
chmod
-R
777 ./tool
find ./tool | cpio
-o
-H
newc>tool.cpio
find ./tool | cpio
-o
-H
newc
--owner
=
root:root
>
tool.cpio
xz tool.cpio
xz tool.cpio
rm
-rf
tool
rm
-rf
tool
cd
..
cd
..
find .| cpio
-o
-H
newc>../ventoy_mips64.cpio
find .| cpio
-o
-H
newc
--owner
=
root:root
>
../ventoy_mips64.cpio
cd
..
cd
..
rm
-rf
cpio_tmp
rm
-rf
cpio_tmp
...
...
IMG/mkloopex.sh
View file @
069342ab
...
@@ -14,7 +14,7 @@ for dir in $(ls); do
...
@@ -14,7 +14,7 @@ for dir in $(ls); do
cd
..
cd
..
done
done
find
.
| cpio
-o
-H
newc>../vtloopex.cpio
find
.
| cpio
-o
-H
newc
--owner
=
root:root
>
../vtloopex.cpio
cd
..
cd
..
...
...
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