From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH 1/2] partresize: remove buggy code Date: Sat, 03 Jun 2023 09:01:02 +0200 Message-ID: <20230603070103.2989-1-arne_f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5458126947470665791==" List-Id: --===============5458126947470665791== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DRV is not defined so this code is useless. Signed-off-by: Arne Fitzenreiter --- src/initscripts/system/partresize | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partr= esize index 272fbe482..832bc7237 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 =20 - # 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 --=20 2.38.1 --===============5458126947470665791==--