Merge "Fix the order for boot scripts scanning" am: ccab04e5b5 am: 28d0dba1f5 am: 9a4f58b8d5

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1393378

Change-Id: I767f9ed803b0db6f2737dcb0cf123166a9fc110b
This commit is contained in:
Jooyung Han 2020-08-08 00:19:44 +00:00 committed by Automerger Merge Worker
commit 4c5acc0fd0

View file

@ -310,14 +310,14 @@ static void LoadBootScripts(ActionManager& action_manager, ServiceList& service_
// late_import is available only in Q and earlier release. As we don't
// have system_ext in those versions, skip late_import for system_ext.
parser.ParseConfig("/system_ext/etc/init");
if (!parser.ParseConfig("/product/etc/init")) {
late_import_paths.emplace_back("/product/etc/init");
if (!parser.ParseConfig("/vendor/etc/init")) {
late_import_paths.emplace_back("/vendor/etc/init");
}
if (!parser.ParseConfig("/odm/etc/init")) {
late_import_paths.emplace_back("/odm/etc/init");
}
if (!parser.ParseConfig("/vendor/etc/init")) {
late_import_paths.emplace_back("/vendor/etc/init");
if (!parser.ParseConfig("/product/etc/init")) {
late_import_paths.emplace_back("/product/etc/init");
}
} else {
parser.ParseConfig(bootscript);