]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
partresize: fix partresize for new arm image layout.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 23 Dec 2013 21:28:27 +0000 (22:28 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 23 Dec 2013 21:28:27 +0000 (22:28 +0100)
src/initscripts/init.d/partresize

index d4e4db268528ffa99b4ba4fef542df9c67592a70..909d63f669ebfcc32ae4549db122c636bebaa8f0 100644 (file)
@@ -6,7 +6,7 @@
 #
 # Authors     : Arne Fitzenreiter - arne_f@ipfire.org
 #
 #
 # Authors     : Arne Fitzenreiter - arne_f@ipfire.org
 #
-# Version     : 1.02
+# Version     : 1.03
 #
 # Notes       :
 #
 #
 # Notes       :
 #
@@ -37,7 +37,7 @@ case "${1}" in
                fi
 
                boot_mesg "Change Partition ${DRV}3 to all free space ..."
                fi
 
                boot_mesg "Change Partition ${DRV}3 to all free space ..."
-               echo -e 'd\n3\nn\np\n3\n\n\nw\nq\n' | fdisk ${DRV}
+               echo -e ',+' | sfdisk --no-reread -N3 ${DRV} 2>/dev/null
 
                # Erase symlink, it should run only once
                rm -f /etc/rc.d/rcsysinit.d/S25partresize
 
                # Erase symlink, it should run only once
                rm -f /etc/rc.d/rcsysinit.d/S25partresize