aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-16 13:39:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-16 13:39:36 +0000
commitebe49115b169690173a50446bcc9a9c050637d9c (patch)
tree4e79749792ed55f9fe6367bbce86e584db80b2ee
parent2e0ab8dbe24fc14f43dd7ab209eca5e48bb44935 (diff)
downloadupstream-ebe49115b169690173a50446bcc9a9c050637d9c.tar.gz
upstream-ebe49115b169690173a50446bcc9a9c050637d9c.tar.bz2
upstream-ebe49115b169690173a50446bcc9a9c050637d9c.zip
[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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16867 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/x86/base-files/lib/upgrade/platform.sh2
1 files changed, 1 insertions, 1 deletions
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() {