From 2e228936f4cde4809358d184235b144697826b98 Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Fri, 4 Dec 2020 17:04:34 +0800 Subject: [PATCH] Adding 'postinstall' root dir unconditionally. It is required to pass update_engine_unittests in GSI compliance test. And it's clean to just add this mount dir unconditionally. Bug: 172696594 Test: `m init.environ.rc` and checks that $OUT/root/postinstall exists Change-Id: Ib340a78af442ea66c45cecb373a9eb3c428f8dda --- rootdir/Android.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 2bceb751a..17d71f7d7 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -78,7 +78,7 @@ endif # create some directories (some are mount points) and symlinks LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \ dev proc sys system data data_mirror odm oem acct config storage mnt apex debug_ramdisk \ - linkerconfig second_stage_resources $(BOARD_ROOT_EXTRA_FOLDERS)); \ + linkerconfig second_stage_resources postinstall $(BOARD_ROOT_EXTRA_FOLDERS)); \ ln -sf /system/bin $(TARGET_ROOT_OUT)/bin; \ ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \ ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \ @@ -153,11 +153,6 @@ ifdef BOARD_ROOT_EXTRA_SYMLINKS ; mkdir -p $(dir $(TARGET_ROOT_OUT)/$(word 2,$(p))) \ ; ln -sf $(word 1,$(p)) $(TARGET_ROOT_OUT)/$(word 2,$(p))) endif -# The A/B updater uses a top-level /postinstall directory to mount the new -# system before reboot. -ifeq ($(AB_OTA_UPDATER),true) - LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/postinstall -endif # The init symlink must be a post install command of a file that is to TARGET_ROOT_OUT. # Since init.environ.rc is required for init and satisfies that requirement, we hijack it to create the symlink.