From: Arne Fitzenreiter Date: Mon, 5 Jun 2023 07:30:28 +0000 (+0200) Subject: partresize: remove buggy code X-Git-Tag: v2.27-core176~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36a19f2b398f8d70e0c6dc00adee5274ae7da79b;p=ipfire-2.x.git partresize: remove buggy code DRV is not defined so this code is useless. Signed-off-by: Arne Fitzenreiter Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partresize index 272fbe4824..832bc7237f 100644 --- a/src/initscripts/system/partresize +++ b/src/initscripts/system/partresize @@ -112,11 +112,6 @@ case "${1}" in boot_mesg "Growing root partition to maximum size..." echo -e ',+' | sfdisk --no-reread -f -N${part_num} "${root_dev}" 2>/dev/null - # Update c,h,s values of the boot partition... - if [ ${part_num} -ne 1 -a -b "${root_dev}1" ]; then - echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} &> /dev/null - fi - # The filesystem should be resized after # this operation touch /.resizefs