Merge "Fix /init -> /system/bin/init symlink creation race"
am: 50f5246352
Change-Id: I4853ff99d82ad14efda424de5ce29919e1189caa
This commit is contained in:
commit
24d37b9265
2 changed files with 4 additions and 1 deletions
|
|
@ -104,7 +104,6 @@ LOCAL_MODULE := init_system
|
|||
LOCAL_REQUIRED_MODULES := \
|
||||
init_second_stage \
|
||||
|
||||
LOCAL_POST_INSTALL_CMD := ln -sf /system/bin/init $(TARGET_ROOT_OUT)/init
|
||||
include $(BUILD_PHONY_PACKAGE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
|||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
|
||||
# The init symlink must be a post install command of a file that is to TARGET_ROOT_OUT.
|
||||
# Since init.rc is required for init and satisfies that requirement, we hijack it to create the symlink.
|
||||
LOCAL_POST_INSTALL_CMD := ln -sf /system/bin/init $(TARGET_ROOT_OUT)/init
|
||||
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
#######################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue