begin to abstract out the file system and mount information. known issue: create_fstab causes segfault on incredible. and thus subsequent crash loop of recovery.
diff --git a/roots.h b/roots.h
index bc847ea..7b15ed1 100644
--- a/roots.h
+++ b/roots.h
@@ -60,4 +60,13 @@
*/
int format_root_device(const char *root);
+typedef struct {
+ const char *name;
+ const char *device;
+ const char *device2; // If the first one doesn't work (may be NULL)
+ const char *partition_name;
+ const char *mount_point;
+ const char *filesystem;
+} RootInfo;
+
#endif // RECOVERY_ROOTS_H_