summaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/roots.c b/roots.c
index 10b93d48a..31f99ac13 100644
--- a/roots.c
+++ b/roots.c
@@ -51,7 +51,6 @@ static const char g_ramdisk[] = "@\0g_ramdisk";
static RootInfo g_roots[] = {
{ "BOOT:", g_mtd_device, NULL, "boot", NULL, g_raw },
- { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
{ "PACKAGE:", NULL, NULL, NULL, NULL, g_package_file },
{ "RECOVERY:", g_mtd_device, NULL, "recovery", "/", g_raw },
{ "SYSTEM:", g_mtd_device, NULL, "system", "/system", "yaffs2" },
@@ -68,6 +67,7 @@ static RootInfo g_roots[] = {
{ "CACHE:", g_mtd_device, NULL, "cache", "/cache", "yaffs2" },
{ "DATA:", g_mtd_device, NULL, "userdata", "/data", "yaffs2" },
{ "EXT:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" },
+ { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
#endif
};
@@ -384,8 +384,10 @@ format_root_device(const char *root)
#ifdef USE_EXT4
if (strcmp(info->filesystem, "ext4") == 0) {
+ LOGW("starting to reformat ext4\n");
reset_ext4fs_info();
int result = make_ext4fs(info->device, NULL, NULL, 0, 0);
+ LOGW("finished reformat ext4: result = %d\n", result);
if (result != 0) {
LOGW("make_ext4fs failed: %d\n", result);
return -1;