]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
partresize: remove buggy code
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jun 2023 07:30:28 +0000 (09:30 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Jun 2023 09:25:59 +0000 (09:25 +0000)
DRV is not defined so this code is useless.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/partresize

index 272fbe4824f21b95836391b52ab8949eb07c202f..832bc7237f6509f1526bdd177708afd6697d67ab 100644 (file)
@@ -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