aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorChristopher Lais <chris+android@zenthought.org>2011-01-16 06:02:34 -0600
committerChristopher Lais <chris+android@zenthought.org>2011-01-16 06:29:31 -0600
commit066a1027a421ee7cdcdc23a7e6fa24e9b256cd1a (patch)
treee007e13f39b9174bcc18fb13653debc8051f5c84 /roots.c
parenta25cf5ec4fb7348843bdfb623b81019db2d48030 (diff)
downloadandroid_bootable_recovery-066a1027a421ee7cdcdc23a7e6fa24e9b256cd1a.tar.gz
android_bootable_recovery-066a1027a421ee7cdcdc23a7e6fa24e9b256cd1a.tar.bz2
android_bootable_recovery-066a1027a421ee7cdcdc23a7e6fa24e9b256cd1a.zip
Use raw partition functions for emmc
Change-Id: Ia5d9f18d43228a08f12633d432b299def8e26ae1
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/roots.c b/roots.c
index 028fbc4c..d4c00332 100644
--- a/roots.c
+++ b/roots.c
@@ -248,6 +248,10 @@ int format_volume(const char* volume) {
return 0;
}
+ if (strcmp(v->fs_type, "emmc") == 0) {
+ return erase_raw_partition(v->device);
+ }
+
if (strcmp(v->fs_type, "ext4") == 0) {
reset_ext4fs_info();
int result = make_ext4fs(v->device, NULL, NULL, 0, 0, 0);