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

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


generation.
Signed-off-by: Alessandro Elias's avatarAlessandro Elias <ae11@c3sl.ufpr.br>
parent 73978665
...@@ -39,10 +39,9 @@ PREFIX=$PWD ...@@ -39,10 +39,9 @@ PREFIX=$PWD
source ${PREFIX}/common.sh source ${PREFIX}/common.sh
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}." log ERROR "Failed to compress ${CHROOTDIR}."
(cd ${TMP}/image && find . -type f -print0 | xargs -0 md5sum | grep -v "\./md5sum.txt" > md5sum.txt) ||\ (cd ${TMP}/image && find . -type f -print0 | xargs -0 md5sum | grep -v "\./md5sum.txt" > md5sum.txt) ||\
log ERROR "Failed to generate md5sum." log ERROR "Failed to generate md5sum."
exit 0 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