commit | 84306559317a8ddcfba6fad5cc6ea7217161e206 | [log] [tgz] |
---|---|---|
author | Koushik K. Dutta <koushd@gmail.com> | Sun Apr 18 21:21:58 2010 -0700 |
committer | Koushik K. Dutta <koushd@gmail.com> | Sun Apr 18 21:21:58 2010 -0700 |
tree | 94e7ce62c2f8c40a4faacb952724ddd55c304158 | |
parent | f3534d08ebe05635fdba19f34a5280f9228d3213 [diff] [blame] |
format BOOT on nandroid restore.
diff --git a/nandroid.c b/nandroid.c index 9f039dd..44d0236 100644 --- a/nandroid.c +++ b/nandroid.c
@@ -224,6 +224,9 @@ int ret; if (restore_boot) { + ui_print("Erasing boot before restore...\n"); + if (0 != (ret = format_root_device("BOOT:"))) + return print_and_error("Error while formatting BOOT:!\n"); sprintf(tmp, "flash_image boot %s/boot.img", backup_path); ui_print("Restoring boot image...\n"); if (0 != (ret = __system(tmp))) {