Unmount partitions after restore (except for CACHE:).
Wipe sd-ext on data wipe.
Fix bug where wiping SDEXT: did not work.
diff --git a/roots.c b/roots.c
index 31c7bdd..abfb4ce 100644
--- a/roots.c
+++ b/roots.c
@@ -27,6 +27,8 @@
 #include "roots.h"
 #include "common.h"
 
+#include "extendedcommands.h"
+
 typedef struct {
     const char *name;
     const char *device;
@@ -366,7 +368,6 @@
             }
         }
     }
-//TODO: handle other device types (sdcard, etc.)
-    LOGW("format_root_device: can't handle non-mtd device \"%s\"\n", root);
-    return -1;
+
+    return format_non_mtd_device(root);
 }