Commit 73053006 authored by Alessandro Elias's avatar Alessandro Elias
Browse files

Remove sudo, must be run as root. Improved performance of squash

Signed-off-by: Alessandro Elias's avatarAlessandro Elias <>
parent 73978665
......@@ -39,10 +39,9 @@ PREFIX=$PWD
source ${PREFIX}/
sudo mksquashfs $CHROOTDIR ${TMP}/image/casper/filesystem.squashfs ||\
set -x
mksquashfs $CHROOTDIR ${TMP}/image/casper/filesystem.squashfs -b 1M -no-recovery -no-progress -processors $(nproc) ||\
log ERROR "Failed to compress ${CHROOTDIR}."
(cd ${TMP}/image && find . -type f -print0 | xargs -0 md5sum | grep -v "\./md5sum.txt" > md5sum.txt) ||\
log ERROR "Failed to generate md5sum."
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment