diff --git a/inst-rasp.sh b/inst-rasp.sh index 852e0ab..5e4bad1 100755 --- a/inst-rasp.sh +++ b/inst-rasp.sh @@ -107,16 +107,17 @@ printInfo "Extend root partition" #rootfs-expand partSize=`df --output=size -B 1 "$PWD" |tail -n 1` # For prod -#if [ $partSize -gt 61780000000 ]; then +if [ $partSize -gt 61780000000 ]; then # For dev -if [ $partSize -gt 21407727600 ]; then +#if [ $partSize -gt 21407727600 ]; then printSuccess "Root partion already extended" else rootfs-expand + retVal=$? if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi printSuccess "Root partition extended" # parted /dev/mmcblk0 resizepart 3 100% >/dev/null 2>&1 -# error=$? +# rror=$? # resize2fs /dev/mmcblk0p3 >/dev/null 2>&1 # let retVal=retVal+$error # if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi