From 1fad5b1faf333b41230b0fa4d97fa5daf0877496 Mon Sep 17 00:00:00 2001 From: Dermot Bradley Date: Wed, 23 Mar 2022 04:02:10 +0000 Subject: [PATCH] growpart: revert off-by-1 change --- bin/growpart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/growpart b/bin/growpart index 4bba714..2130565 100755 --- a/bin/growpart +++ b/bin/growpart @@ -360,7 +360,7 @@ resize_sfdisk() { pt_start=$(awk '$1 == pt { print $4 }' "pt=${dpart}" <"${dump_mod}") && pt_size=$(awk '$1 == pt { print $6 }' "pt=${dpart}" <"${dump_mod}") && [ -n "${pt_start}" -a -n "${pt_size}" ] && - pt_end=$((${pt_size}+${pt_start}-1)) || + pt_end=$((${pt_size}+${pt_start})) || fail "failed to get start and end for ${dpart} in ${DISK}" # find the minimal starting location that is >= pt_end