dont fail if nonmtd format fails... create mtab

This commit is contained in:
Koushik Dutta 2010-06-23 00:02:14 -07:00
parent 49af23cbce
commit cd44ab973e
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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!");