summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-09-11 08:11:56 +0200
committerDees Troy <dees_troy@teamw.in>2013-09-12 17:36:40 +0200
commit05534209f104a435d91042fd4b816aaaae7b7b54 (patch)
tree64da042d36402180f30518f14ad460a1e970166b /partitionmanager.cpp
parentMake fixing su perms automatic (diff)
downloadandroid_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.gz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.bz2
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.lz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.xz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.zst
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 4e72117dd..ca93a2ab1 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1635,8 +1635,8 @@ int TWPartitionManager::Partition_SDCard(void) {
if (!SDext->UnMount(true))
return false;
}
- string result;
- TWFunc::Exec_Cmd("umount \"$SWAPPATH\"", result);
+
+ TWFunc::Exec_Cmd("umount \"$SWAPPATH\"");
Device = SDCard->Actual_Block_Device;
// Just use the root block device
Device.resize(strlen("/dev/block/mmcblkX"));
@@ -1688,7 +1688,7 @@ int TWPartitionManager::Partition_SDCard(void) {
gui_print("Removing partition table...\n");
Command = "parted -s " + Device + " mklabel msdos";
LOGINFO("Command is: '%s'\n", Command.c_str());
- if (TWFunc::Exec_Cmd(Command, result) != 0) {
+ if (TWFunc::Exec_Cmd(Command) != 0) {
LOGERR("Unable to remove partition table.\n");
Update_System_Details();
return false;
@@ -1696,7 +1696,7 @@ int TWPartitionManager::Partition_SDCard(void) {
gui_print("Creating FAT32 partition...\n");
Command = "parted " + Device + " mkpartfs primary fat32 0 " + fat_str + "MB";
LOGINFO("Command is: '%s'\n", Command.c_str());
- if (TWFunc::Exec_Cmd(Command, result) != 0) {
+ if (TWFunc::Exec_Cmd(Command) != 0) {
LOGERR("Unable to create FAT32 partition.\n");
return false;
}
@@ -1704,7 +1704,7 @@ int TWPartitionManager::Partition_SDCard(void) {
gui_print("Creating EXT partition...\n");
Command = "parted " + Device + " mkpartfs primary ext2 " + fat_str + "MB " + ext_str + "MB";
LOGINFO("Command is: '%s'\n", Command.c_str());
- if (TWFunc::Exec_Cmd(Command, result) != 0) {
+ if (TWFunc::Exec_Cmd(Command) != 0) {
LOGERR("Unable to create EXT partition.\n");
Update_System_Details();
return false;
@@ -1714,7 +1714,7 @@ int TWPartitionManager::Partition_SDCard(void) {
gui_print("Creating swap partition...\n");
Command = "parted " + Device + " mkpartfs primary linux-swap " + ext_str + "MB " + swap_str + "MB";
LOGINFO("Command is: '%s'\n", Command.c_str());
- if (TWFunc::Exec_Cmd(Command, result) != 0) {
+ if (TWFunc::Exec_Cmd(Command) != 0) {
LOGERR("Unable to create swap partition.\n");
Update_System_Details();
return false;
@@ -1749,7 +1749,7 @@ int TWPartitionManager::Partition_SDCard(void) {
Command = "mke2fs -t " + ext_format + " -m 0 " + SDext->Actual_Block_Device;
gui_print("Formatting sd-ext as %s...\n", ext_format.c_str());
LOGINFO("Formatting sd-ext after partitioning, command: '%s'\n", Command.c_str());
- TWFunc::Exec_Cmd(Command, result);
+ TWFunc::Exec_Cmd(Command);
}
Update_System_Details();