From cd44ab973ebef327384ca5475f8276c37c2e8538 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 23 Jun 2010 00:02:14 -0700 Subject: [PATCH] dont fail if nonmtd format fails... create mtab --- Android.mk | 2 +- extendedcommands.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index 7b11f20..5879670 100644 --- a/Android.mk +++ b/Android.mk @@ -26,7 +26,7 @@ LOCAL_MODULE := recovery LOCAL_FORCE_STATIC_EXECUTABLE := true -RECOVERY_VERSION := ClockworkMod Recovery v2.0.1.0 +RECOVERY_VERSION := ClockworkMod Recovery v2.0.1.3 LOCAL_CFLAGS := -DRECOVERY_VERSION="$(RECOVERY_VERSION)" RECOVERY_API_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) diff --git a/extendedcommands.c b/extendedcommands.c index 9aee529..29adf56 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -431,7 +431,9 @@ int format_non_mtd_device(const char* root) if (0 != ensure_root_path_mounted(root)) { ui_print("Error mounting %s!\n", path); - return 1; + ui_print("Skipping format...\n"); + return 0; + } static char tmp[PATH_MAX]; @@ -833,6 +835,7 @@ void write_fstab_root(char *root_path, FILE *file) void create_fstab() { + __system("touch /etc/mtab"); FILE *file = fopen("/etc/fstab", "w"); if (file == NULL) { LOGW("Unable to create /etc/fstab!");