提交 33e408d6 编写于 作者: C cheng_jinsong

fix parse cfg priority

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 918f334e
......@@ -990,15 +990,15 @@ void ParseAllServices(const cJSON *fileRoot)
continue;
}
Service *service = GetServiceByName(fieldStr);
if (service != NULL) {
INIT_LOGE("Service \' %s \' already exist", fieldStr);
continue;
}
if (service == NULL) {
service = AddService(fieldStr);
if (service == NULL) {
INIT_LOGE("Failed to create service name %s", fieldStr);
INIT_LOGE("Failed to add service name %s", fieldStr);
continue;
}
} else {
INIT_LOGI("Service %s already exists, updating.", fieldStr);
}
service->pid = -1;
int ret = ParseOneService(curItem, service);
if (ret != SERVICE_SUCCESS) {
......
......@@ -218,15 +218,15 @@ static void StartInitSecondStage(void)
void SystemPrepare(void)
{
INIT_LOGI("Start init first stage.");
MountBasicFs();
CreateDeviceNode();
LogInit();
// Make sure init log always output to /dev/kmsg.
EnableDevKmsg();
INIT_LOGI("Start init first stage.");
// Only ohos normal system support
// two stages of init.
// If we are in updater mode, only one stage of init,
// If we are in updater mode, only one stage of init.
if (InUpdaterMode() == 0) {
StartInitSecondStage();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册