summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-07-23 05:56:42 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-07-23 05:56:42 +0200
commit6b09b895be7eed69af5bffcd551afe9c9216e3c8 (patch)
tree553bd11eeebf1cbe4d25f6b541a75bbc6db2bea7 /roots.cpp
parentMerge "Avoid crashing recovery with unwritable /cache." (diff)
parentRemove the obsolete reference to /file_contexts. (diff)
downloadandroid_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar.gz
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar.bz2
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar.lz
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar.xz
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.tar.zst
android_bootable_recovery-6b09b895be7eed69af5bffcd551afe9c9216e3c8.zip
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/roots.cpp b/roots.cpp
index e98dfd448..c4afd5de3 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -260,8 +260,6 @@ int format_volume(const char* volume, const char* directory) {
if (result == 0 && directory != nullptr) {
const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static",
"-e",
- "-S",
- "/file_contexts",
"-f",
directory,
"-a",
@@ -270,7 +268,7 @@ int format_volume(const char* volume, const char* directory) {
nullptr };
result = exec_cmd(e2fsdroid_argv[0], const_cast<char**>(e2fsdroid_argv));
- }
+ }
} else { /* Has to be f2fs because we checked earlier. */
if (v->key_loc != NULL && strcmp(v->key_loc, "footer") == 0 && length < 0) {
LOG(ERROR) << "format_volume: crypt footer + negative length (" << length