Ventoy/IMG/mkloopex.sh

28 lines
443 B
Bash
Raw Normal View History

2020-08-13 12:20:20 +00:00
#!/bin/bash
VENTOY_PATH=$PWD/../
rm -f vtloopex.cpio
cp -a vtloopex vtloopex_tmp
cd vtloopex_tmp
for dir in $(ls); do
cd $dir
tar -cJf vtloopex.tar.xz vtloopex
rm -rf vtloopex
cd ..
done
2021-07-27 14:18:39 +00:00
find . | cpio -o -H newc --owner=root:root >../vtloopex.cpio
2020-08-13 12:20:20 +00:00
cd ..
rm -rf vtloopex_tmp
rm -f $VENTOY_PATH/INSTALL/ventoy/vtloopex.cpio
cp -a vtloopex.cpio $VENTOY_PATH/INSTALL/ventoy/
echo '======== SUCCESS ============='