Add BOARD_HAS_JANKY_BACKBUFFER for terrible Galaxy Tabs.
Change-Id: I72e7a8aaf65c97d4cd2b77ff92cf7232f8c9e7a7
diff --git a/roots.c b/roots.c
index 70d5578..0f6b3d7 100644
--- a/roots.c
+++ b/roots.c
@@ -159,6 +159,22 @@
LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno));
return -1;
+ } else {
+ // let's just give it a shot and see what happens...
+ result = mount(v->device, v->mount_point, v->fs_type,
+ MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");
+ if (result == 0) return 0;
+
+ if (v->device2) {
+ LOGW("failed to mount %s (%s); trying %s\n",
+ v->device, strerror(errno), v->device2);
+ result = mount(v->device2, v->mount_point, v->fs_type,
+ MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");
+ if (result == 0) return 0;
+ }
+
+ LOGE("failed to mount %s (%s)\n", v->mount_point, strerror(errno));
+ return -1;
}
LOGE("unknown fs_type \"%s\" for %s\n", v->fs_type, v->mount_point);