mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-18 21:01:26 +00:00
Fix typo: resize2fs now handles 8 GB SD cards correctly
This commit is contained in:
parent
5bebcba8bc
commit
3ba37f1062
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue