summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2021-04-16 20:35:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-04-16 20:35:03 +0000
commitce1f9f941daa8532bfca6edc7baab15e9ae7796e (patch)
treeacfdd775a1ce096b245f3d9664f2dadcfc8ffb23
parent6f58cffe86eea4c0e7262c60a5174962538db8c5 (diff)
parent1a4c1da15393aa0428891739188a2c028caec721 (diff)
Merge "Try to mount and compile system_ext apks."
-rw-r--r--cmds/installd/otapreopt_chroot.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds/installd/otapreopt_chroot.cpp b/cmds/installd/otapreopt_chroot.cpp
index 3a87776162..83f01de01e 100644
--- a/cmds/installd/otapreopt_chroot.cpp
+++ b/cmds/installd/otapreopt_chroot.cpp
@@ -179,6 +179,11 @@ static int otapreopt_chroot(const int argc, char **arg) {
// want it for product APKs. Same notes as vendor above.
TryExtraMount("product", arg[2], "/postinstall/product");
+ // Try to mount the system_ext partition. update_engine doesn't do this for
+ // us, but we want it for system_ext APKs. Same notes as vendor and product
+ // above.
+ TryExtraMount("system_ext", arg[2], "/postinstall/system_ext");
+
constexpr const char* kPostInstallLinkerconfig = "/postinstall/linkerconfig";
// Try to mount /postinstall/linkerconfig. we will set it up after performing the chroot
if (mount("tmpfs", kPostInstallLinkerconfig, "tmpfs", 0, nullptr) != 0) {