]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/partresize
partresize: fix output redirection to dev/zero.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / partresize
index 909d63f669ebfcc32ae4549db122c636bebaa8f0..f9b1aa92f09f6a2aa38aecefd9f6c01cfe2c7823 100644 (file)
@@ -6,7 +6,7 @@
 #
 # Authors     : Arne Fitzenreiter - arne_f@ipfire.org
 #
-# Version     : 1.03
+# Version     : 1.04
 #
 # Notes       :
 #
@@ -37,14 +37,18 @@ case "${1}" in
                fi
 
                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} &> /dev/null
 
                # Erase symlink, it should run only once
                rm -f /etc/rc.d/rcsysinit.d/S25partresize
 
                boot_mesg "Rebooting ..."
                sync
-               mount -o remount,ro / > /dev/null
+               mount -o remount,ro / &> /dev/null
+               sleep 15
                reboot -f
 
                ;;