From ddac7dcce178c265dd96b4dab20b271fa6d4d4fa Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Wed, 27 Feb 2019 17:58:30 +0800 Subject: [PATCH] Sets default value of ro.postinstall.fstab.prefix ro.postinstall.fstab.prefix might be either "/system" or "/product", to decide the location of the fstab.postinstall, used to mount system_other partition on A/B devices. {ro.postinstall.fstab.prefix}/etc/fstab.postinstall Bug: 112103720 Test: factory reset and boot device, checks cppreopt logs Change-Id: Ib1e282752c37713e2220239f4f903453ce3c8bab --- core/main.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/main.mk b/core/main.mk index 8b43867914..3e40f6f6f6 100644 --- a/core/main.mk +++ b/core/main.mk @@ -257,6 +257,15 @@ ifneq (,$(PRODUCT_SYSTEM_SERVER_COMPILER_FILTER)) ADDITIONAL_PRODUCT_PROPERTIES += dalvik.vm.systemservercompilerfilter=$(PRODUCT_SYSTEM_SERVER_COMPILER_FILTER) endif +# Sets the default value of ro.postinstall.fstab.prefix to /system. +# Device board config should override the value to /product when needed by: +# +# PRODUCT_PRODUCT_PROPERTIES += ro.postinstall.fstab.prefix=/product +# +# It then uses ${ro.postinstall.fstab.prefix}/etc/fstab.postinstall to +# mount system_other partition. +ADDITIONAL_DEFAULT_PROPERTIES += ro.postinstall.fstab.prefix=/system + # ----------------------------------------------------------------- ### ### In this section we set up the things that are different