From: Arne Fitzenreiter Date: Mon, 10 Feb 2014 23:23:11 +0000 (+0100) Subject: partresize: resize partition before c,h,s changes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6450609d749c0a8e16e12000675bb79bdb8da3ff;p=people%2Fteissler%2Fipfire-2.x.git partresize: resize partition before c,h,s changes. --- diff --git a/src/initscripts/init.d/partresize b/src/initscripts/init.d/partresize index 474b79f4d..caa4ab88d 100644 --- a/src/initscripts/init.d/partresize +++ b/src/initscripts/init.d/partresize @@ -36,12 +36,11 @@ case "${1}" in DRV=${ROOT::`expr length $ROOT`-1} fi - boot_mesg "Update c,h,s values of ${DRV} ..." - echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} 2>&1 > /dev/null - echo -e ',' | sfdisk --no-reread -f -N3 ${DRV} 2>&1 > /dev/null - boot_mesg "Change Partition ${DRV}3 to all free space ..." - echo -e ',+' | sfdisk --no-reread -N3 ${DRV} 2>/dev/null + echo -e ',+' | sfdisk --no-reread -f -N3 ${DRV} 2>/dev/null + + boot_mesg "Update c,h,s values of ${DRV}1 ..." + echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} 2>&1 > /dev/null # Erase symlink, it should run only once rm -f /etc/rc.d/rcsysinit.d/S25partresize