aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPat Erley <perley@cyngn.com>2016-02-04 17:17:49 -0800
committerPat Erley <perley@cyngn.com>2016-02-08 00:30:01 -0800
commit054fa8d47c694d3d8182a27581f209e347823cbe (patch)
tree5f750a39082b69959f994cfac04f9d6e098b0218
parentda94576d8d28fac0947c9310ef07d0beefb420ef (diff)
downloadbootable_recovery-054fa8d47c694d3d8182a27581f209e347823cbe.zip
bootable_recovery-054fa8d47c694d3d8182a27581f209e347823cbe.tar.gz
bootable_recovery-054fa8d47c694d3d8182a27581f209e347823cbe.tar.bz2
recovery: mount without selinux for update
Mount the partition that is storing the OTA with an override so that recovery can read it. Change-Id: Ib87f27d4ca95f1a44de0477198c1de00552c0a8a
-rw-r--r--install.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp
index 48da7f5..5631594 100644
--- a/install.cpp
+++ b/install.cpp
@@ -300,8 +300,10 @@ really_install_package(const char *path, bool* wipe_cache, bool needs_mount)
if (path && needs_mount) {
if (path[0] == '@') {
ensure_path_mounted(path+1);
+ remount_no_selinux(path+1);
} else {
ensure_path_mounted(path);
+ remount_no_selinux(path);
}
}