summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-08-08 12:59:32 -0700
committerColin Cross <ccross@android.com>2012-08-08 13:04:58 -0700
commit629c87b832ce0fa536a3fb6bd4a5095655fddd29 (patch)
tree5885454209b964462c4293e9a1fcb3ad3061f484
parent6bdeb4481e3e447d5234426a6c9cc74cbf103bab (diff)
downloadbuild-629c87b832ce0fa536a3fb6bd4a5095655fddd29.zip
build-629c87b832ce0fa536a3fb6bd4a5095655fddd29.tar.gz
build-629c87b832ce0fa536a3fb6bd4a5095655fddd29.tar.bz2
recovery: don't delete hardware specific init*.rc files
init used to automatically execute hardware specific init.rc files from init.<hardware>.rc. If the hardware specific init.rc file was installed in recovery.img, various unwanted services would try to start, so init*.rc was deleted when creating the recovery root directory. init was recently modified to explicitly import init.${ro.hardware}.rc from the default init.rc, rather than always trying to load it. Since recovery replaces the default init.rc with a custom one, it will never try to load hardware specific init files. In addition, there are cases where we need to start hardware specific services, for example watchdogd, so we need init.recovery.${ro.hardware}.rc to be installed. Modify the build rule to delete the default init.rc from the recovery root directory so it can be replaced with the custom recovery init.rc, but leave all the hardware specific init files in place. Bug: 6953625 Change-Id: I5d9555e3d54d2f1d9f49fb981bd412c53741337e
-rw-r--r--core/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index 6b46451..bf2a2ce 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -651,7 +651,7 @@ $(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTFS) $(MKBOOTIMG) $(MINIGZIP) \
mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/tmp
echo Copying baseline ramdisk...
cp -R $(TARGET_ROOT_OUT) $(TARGET_RECOVERY_OUT)
- rm $(TARGET_RECOVERY_ROOT_OUT)/init*.rc
+ rm $(TARGET_RECOVERY_ROOT_OUT)/init.rc
echo Modifying ramdisk contents...
cp -f $(recovery_initrc) $(TARGET_RECOVERY_ROOT_OUT)/
cp -f $(recovery_binary) $(TARGET_RECOVERY_ROOT_OUT)/sbin/