From 143cbb228f2248a42c18061fd17f779bcda3a694 Mon Sep 17 00:00:00 2001 From: Arszilla Date: Mon, 29 Aug 2022 15:48:16 +0300 Subject: [PATCH] Update chromebook-veyron.sh --- chromebook-veyron.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chromebook-veyron.sh b/chromebook-veyron.sh index c679f2d..cc246c7 100755 --- a/chromebook-veyron.sh +++ b/chromebook-veyron.sh @@ -712,8 +712,13 @@ limit_cpu() { if [ $compress = xz ]; then if [ $(arch) == 'x86_64' ]; then echo "Compressing ${image_name}.img" - [ $(nproc) -lt 3 ] || cpu_cores=3 # cpu_cores = Number of cores to use - limit_cpu pixz -p ${cpu_cores:-2} "${image_dir}/${image_name}.img" # -p Nº cpu cores use + + # cpu_cores = Number of cores to use + [ $(nproc) -lt 3 ] || cpu_cores=3 + + # -p Nº cpu cores use + limit_cpu pixz -p ${cpu_cores:-2} "${image_dir}/${image_name}.img" + chmod 0644 ${repo_dir}/${image_name}.img.xz fi