From: Jo-Philipp Wich Date: Thu, 16 Jul 2009 13:39:36 +0000 (+0000) Subject: [PATCH] sysupgrade-ext2 sync before writing image, not after X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=581bc2e513889c7acbfabad6c68e362b630941ee [PATCH] sysupgrade-ext2 sync before writing image, not after 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 --- diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh index 3d15914617..0f79a00cb8 100644 --- a/target/linux/x86/base-files/lib/upgrade/platform.sh +++ b/target/linux/x86/base-files/lib/upgrade/platform.sh @@ -13,8 +13,8 @@ platform_check_image() { } platform_do_upgrade() { - get_image "$1" > /dev/hda sync + get_image "$1" > /dev/hda } x86_prepare_ext2() {