2020-04-04 16:07:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
VENTOY_PATH=$PWD/../
|
|
|
|
|
|
|
|
rm -f ventoy.cpio
|
|
|
|
|
|
|
|
chmod -R 777 cpio
|
|
|
|
|
|
|
|
cp -a cpio cpio_tmp
|
|
|
|
|
|
|
|
cd cpio_tmp
|
|
|
|
rm -f init
|
|
|
|
ln -s sbin/init init
|
|
|
|
ln -s sbin/init linuxrc
|
|
|
|
|
|
|
|
cd ventoy
|
|
|
|
|
|
|
|
|
2020-08-08 11:39:31 +00:00
|
|
|
cp -a $VENTOY_PATH/DMSETUP/dmsetup* tool/
|
2020-05-20 14:36:27 +00:00
|
|
|
cp -a $VENTOY_PATH/SQUASHFS/unsquashfs_* tool/
|
|
|
|
cp -a $VENTOY_PATH/FUSEISO/vtoy_fuse_iso_* tool/
|
|
|
|
cp -a $VENTOY_PATH/VtoyTool/vtoytool tool/
|
|
|
|
cp -a $VENTOY_PATH/VBLADE/vblade-master/vblade_* tool/
|
2020-08-29 05:12:36 +00:00
|
|
|
cp -a $VENTOY_PATH/LZIP/lunzip32 tool/
|
|
|
|
cp -a $VENTOY_PATH/LZIP/lunzip64 tool/
|
|
|
|
|
2020-05-20 14:36:27 +00:00
|
|
|
|
|
|
|
chmod -R 777 ./tool
|
2020-04-04 16:07:50 +00:00
|
|
|
|
|
|
|
find ./tool | cpio -o -H newc>tool.cpio
|
|
|
|
xz tool.cpio
|
|
|
|
rm -rf tool
|
|
|
|
|
2020-08-08 11:39:31 +00:00
|
|
|
find ./loop | cpio -o -H newc>loop.cpio
|
|
|
|
xz loop.cpio
|
|
|
|
rm -rf loop
|
|
|
|
|
2020-08-07 14:23:27 +00:00
|
|
|
xz ventoy_chain.sh
|
|
|
|
xz ventoy_loop.sh
|
2020-04-04 16:07:50 +00:00
|
|
|
|
|
|
|
find ./hook | cpio -o -H newc>hook.cpio
|
|
|
|
xz hook.cpio
|
|
|
|
rm -rf hook
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
find .| cpio -o -H newc>../ventoy.cpio
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -rf cpio_tmp
|
|
|
|
|
|
|
|
echo '======== SUCCESS ============='
|
|
|
|
|
|
|
|
rm -f $VENTOY_PATH/INSTALL/ventoy/ventoy.cpio
|
|
|
|
cp -a ventoy.cpio $VENTOY_PATH/INSTALL/ventoy/
|
|
|
|
|