From 069342ab9ac9134ce12f73fff6cb9a5f9e453af6 Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 27 Jul 2021 22:18:39 +0800 Subject: [PATCH] change ownership when cpio pack --- IMG/mkcpio.sh | 18 +++++++++--------- IMG/mkloopex.sh | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/IMG/mkcpio.sh b/IMG/mkcpio.sh index 0fc88baf..270eb8f6 100644 --- a/IMG/mkcpio.sh +++ b/IMG/mkcpio.sh @@ -21,19 +21,19 @@ ln -s sbin/init linuxrc cd ventoy -find ./loop | cpio -o -H newc>loop.cpio +find ./loop | cpio -o -H newc --owner=root:root >loop.cpio xz loop.cpio rm -rf loop xz ventoy_chain.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 rm -rf hook cd .. -find .| cpio -o -H newc>../ventoy.cpio +find .| cpio -o -H newc --owner=root:root >../ventoy.cpio cd .. rm -rf cpio_tmp @@ -64,12 +64,12 @@ cp -a $VENTOY_PATH/LZIP/lunzip64 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 rm -rf tool cd .. -find .| cpio -o -H newc>../ventoy_x86.cpio +find .| cpio -o -H newc --owner=root:root >../ventoy_x86.cpio cd .. rm -rf cpio_tmp @@ -95,12 +95,12 @@ cp -a $VENTOY_PATH/LZIP/lunzipaa64 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 rm -rf tool cd .. -find .| cpio -o -H newc>../ventoy_arm64.cpio +find .| cpio -o -H newc --owner=root:root >../ventoy_arm64.cpio cd .. rm -rf cpio_tmp @@ -127,12 +127,12 @@ rm -f tool/vtoytool/00/vtoytool_aa64 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 rm -rf tool cd .. -find .| cpio -o -H newc>../ventoy_mips64.cpio +find .| cpio -o -H newc --owner=root:root >../ventoy_mips64.cpio cd .. rm -rf cpio_tmp diff --git a/IMG/mkloopex.sh b/IMG/mkloopex.sh index 6b605b45..1a87dec6 100644 --- a/IMG/mkloopex.sh +++ b/IMG/mkloopex.sh @@ -14,7 +14,7 @@ for dir in $(ls); do cd .. done -find . | cpio -o -H newc>../vtloopex.cpio +find . | cpio -o -H newc --owner=root:root >../vtloopex.cpio cd ..