summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorJin Qian <jinqian@google.com>2017-11-02 19:58:12 +0100
committerJin Qian <jinqian@google.com>2017-11-02 19:58:12 +0100
commitddc850adc37de909a2a6fc9c48b9c1e7240f40a7 (patch)
tree69ce430aa779c47fe1441577845f610d7f742454 /updater
parentMerge "Fix the size mismatch in imgdiff" am: dec77a454e am: ff7c186f66 (diff)
downloadandroid_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar.gz
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar.bz2
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar.lz
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar.xz
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.tar.zst
android_bootable_recovery-ddc850adc37de909a2a6fc9c48b9c1e7240f40a7.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/install.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 9425d1872..b865081b4 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -49,7 +49,6 @@
#include <applypatch/applypatch.h>
#include <bootloader_message/bootloader_message.h>
#include <cutils/android_reboot.h>
-#include <ext4_utils/make_ext4fs.h>
#include <ext4_utils/wipe.h>
#include <openssl/sha.h>
#include <selinux/label.h>
@@ -284,14 +283,8 @@ Value* FormatFn(const char* name, State* state, const std::vector<std::unique_pt
int status = exec_cmd(mke2fs_argv[0], const_cast<char**>(mke2fs_argv));
if (status != 0) {
- LOG(WARNING) << name << ": mke2fs failed (" << status << ") on " << location
- << ", falling back to make_ext4fs";
- status = make_ext4fs(location.c_str(), size, mount_point.c_str(), sehandle);
- if (status != 0) {
- LOG(ERROR) << name << ": make_ext4fs failed (" << status << ") on " << location;
- return StringValue("");
- }
- return StringValue(location);
+ LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location;
+ return StringValue("");
}
const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static", "-e", "-a", mount_point.c_str(),