init: always create a symlink from /init to /system/bin/init
Even though it isn't strictly needed when not system-as-root, for
backwards compatibility, it is desired to keep this symlink.
Bug: 119851742
Test: tree-hugger
Change-Id: I47bc25ab257336f56ef09b5db6ebaf6b17daad35
diff --git a/init/Android.mk b/init/Android.mk
index 700c81e..17e5ab2 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -104,9 +104,7 @@
LOCAL_REQUIRED_MODULES := \
init_second_stage \
-ifeq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
LOCAL_POST_INSTALL_CMD := ln -sf /system/bin/init $(TARGET_ROOT_OUT)/init
-endif
include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS)