From 3ba37f1062de62954352feb5aad3949738f1ea13 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Thu, 25 May 2017 08:48:39 +0200 Subject: [PATCH] Fix typo: resize2fs now handles 8 GB SD cards correctly --- scripts/resize2fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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