diff --git a/installer/sharch_body.sh b/installer/sharch_body.sh index e15fe66c8..b1a2fa71d 100644 --- a/installer/sharch_body.sh +++ b/installer/sharch_body.sh @@ -36,8 +36,8 @@ if [ "$(id -u)" = "0" ] ; then mount_size=$(df $tmp_dir | tail -1 | tr -s ' ' | cut -d' ' -f4) # Extra space for tmp padding=102400 - if [ "$mount_size" -le "$((image_size + $padding))" ]; then - mount_size=$((((image_size + $padding)/1024/1024)+1)) + if [ "$mount_size" -le "$((image_size + padding))" ]; then + mount_size=$((((image_size + padding)/1024/1024)+1)) mount -o remount,size="${mount_size}G" -t tmpfs tmpfs-installer $tmp_dir || exit 1 fi fi