summaryrefslogtreecommitdiff
path: root/android/paths.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-10-27 06:27:12 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-10-27 06:27:12 +0000
commit07bc11722b688b749c6f40c63c76f11149dc583c (patch)
tree08052af05b434ab78149a3dc1567d2041d2de589 /android/paths.go
parent578b5f06c69c2277e22dbacff0e9769189682181 (diff)
parent39143a941fcf8b252b2fcafb3fd0aa67c8f16ded (diff)
Merge "Fix path conflict for vendor_ramdisk_available"
Diffstat (limited to 'android/paths.go')
-rw-r--r--android/paths.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/paths.go b/android/paths.go
index a056ad4bc..2fb5f25af 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -1402,8 +1402,12 @@ func modulePartition(ctx ModuleInstallPathContext, os OsType) string {
partition += "/system"
}
} else if ctx.InstallInVendorRamdisk() {
+ // The module is only available after switching root into
+ // /first_stage_ramdisk. To expose the module before switching root
+ // on a device without a dedicated recovery partition, install the
+ // recovery variant.
if ctx.DeviceConfig().BoardMoveRecoveryResourcesToVendorBoot() {
- partition = "recovery/root/first_stage_ramdisk"
+ partition = "vendor-ramdisk/first_stage_ramdisk"
} else {
partition = "vendor-ramdisk"
}