[PATCH] sysupgrade-ext2 sync before writing image, not after
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jul 2009 13:39:36 +0000 (13:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jul 2009 13:39:36 +0000 (13:39 +0000)
Sysupgrade for ext2 currently flushes the filesystem buffers after an
image is written to the disk. This should happen before the image is
written.

SVN-Revision: 16867

target/linux/x86/base-files/lib/upgrade/platform.sh

index 3d15914617af930dc8e4a33048a63333bbe0b301..0f79a00cb831babe0a2546362019d4977c89e7e3 100644 (file)
@@ -13,8 +13,8 @@ platform_check_image() {
 }
 
 platform_do_upgrade() {
-       get_image "$1" > /dev/hda
        sync
+       get_image "$1" > /dev/hda
 }
 
 x86_prepare_ext2() {