diff --git a/scripts/resize2fs b/scripts/resize2fs index f593ef55e..0b0f69765 100644 --- a/scripts/resize2fs +++ b/scripts/resize2fs @@ -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