Fix typo: resize2fs now handles 8 GB SD cards correctly

This commit is contained in:
Thomas Kaiser 2017-05-25 08:48:39 +02:00
parent 5bebcba8bc
commit 3ba37f1062

View file

@ -70,7 +70,7 @@ do_expand_partition()
else
ResizeLog="4GB media so leaving 200MB spare area"
fi
elif [[ $CAPACITY -lt 9 ]]; then # 8 GiB or less
elif [[ $capacity -lt 9 ]]; then # 8 GiB or less
# Leave 2 percent unpartitioned
local lastsector=$(( 32 * $(parted $rootdevicepath unit s print -sm | grep "^$rootdevicepath" | awk -F":" "{printf (\"%0d\", ( \$2 * 98 / 3200))}") -1 ))
if [[ $lastsector -lt $partend ]]; then