mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-18 21:01:26 +00:00
Small performance tweaks on image creation
This commit is contained in:
parent
4beced3d91
commit
3def40c1d0
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ create_rootfs_cache()
|
|||
umount_chroot "$CACHEDIR/sdcard"
|
||||
|
||||
tar cp --xattrs --directory=$CACHEDIR/sdcard/ --exclude='./dev/*' --exclude='./proc/*' --exclude='./run/*' --exclude='./tmp/*' \
|
||||
--exclude='./sys/*' . | pv -p -b -r -s $(du -sb $CACHEDIR/sdcard/ | cut -f1) -N "$display_name" | pigz > $cache_fname
|
||||
--exclude='./sys/*' . | pv -p -b -r -s $(du -sb $CACHEDIR/sdcard/ | cut -f1) -N "$display_name" | pigz --fast > $cache_fname
|
||||
fi
|
||||
mount_chroot "$CACHEDIR/sdcard"
|
||||
} #############################################################################
|
||||
|
@ -482,7 +482,7 @@ create_image()
|
|||
fi
|
||||
if [[ $SEVENZIP == yes ]]; then
|
||||
local filename=$DEST/images/${version}.7z
|
||||
7za a -t7z -bd -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on $filename ${version}.raw armbian.txt *.asc sha256sum >/dev/null 2>&1
|
||||
7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.raw armbian.txt *.asc sha256sum >/dev/null 2>&1
|
||||
else
|
||||
local filename=$DEST/images/${version}.zip
|
||||
zip -FSq $filename ${version}.raw armbian.txt *.asc sha256sum
|
||||
|
|
Loading…
Add table
Reference in a new issue