From 5bf439221d081eb1853c8958405b76eca190129e Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 7 Sep 2012 16:07:55 -0400 Subject: Add processing of fstab, mounting, and decrypt --- recovery.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index 2c77271b4..319cdc72a 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -52,10 +52,8 @@ extern "C" { } #include "partitions.hpp" -int gui_init(void); -int gui_loadResources(void); -int gui_start(void); -int gui_console_only(void); +TWPartitionManager PartitionManager; +char device_id[64]; struct selabel_handle *sehandle; @@ -810,7 +808,7 @@ main(int argc, char **argv) { printf("=> Linking mtab\n"); __system("ln -s /proc/mounts /etc/mtab"); // And link mtab for mke2fs printf("=> Processing recovery.fstab\n"); - if (TWPartitionManager::Process_Fstab("/etc/recovery.fstab", 1)) { + if (!PartitionManager.Process_Fstab("/etc/recovery.fstab", 1)) { LOGE("Failing out of recovery due to problem with recovery.fstab.\n"); //return -1; } @@ -905,7 +903,7 @@ main(int argc, char **argv) { if (status != INSTALL_SUCCESS) ui->Print("Installation aborted.\n"); } else if (wipe_data) { gui_console_only(); - if (TWPartitionManager::Factory_Reset()) status = INSTALL_ERROR; + if (PartitionManager.Factory_Reset()) status = INSTALL_ERROR; //if (device->WipeData()) status = INSTALL_ERROR; //if (erase_volume("/data")) status = INSTALL_ERROR; //if (wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR; -- cgit v1.2.3