Skip to content

Commit f38f0fd

Browse files
Treehugger RobotGerrit Code Review
Treehugger Robot
authored and
Gerrit Code Review
committed
Merge "Adding 'postinstall' root dir unconditionally."
2 parents 0a9aff2 + 2e22893 commit f38f0fd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rootdir/Android.mk

+1-6
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endif
7878
# create some directories (some are mount points) and symlinks
7979
LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \
8080
dev proc sys system data data_mirror odm oem acct config storage mnt apex debug_ramdisk \
81-
linkerconfig second_stage_resources $(BOARD_ROOT_EXTRA_FOLDERS)); \
81+
linkerconfig second_stage_resources postinstall $(BOARD_ROOT_EXTRA_FOLDERS)); \
8282
ln -sf /system/bin $(TARGET_ROOT_OUT)/bin; \
8383
ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \
8484
ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \
@@ -153,11 +153,6 @@ ifdef BOARD_ROOT_EXTRA_SYMLINKS
153153
; mkdir -p $(dir $(TARGET_ROOT_OUT)/$(word 2,$(p))) \
154154
; ln -sf $(word 1,$(p)) $(TARGET_ROOT_OUT)/$(word 2,$(p)))
155155
endif
156-
# The A/B updater uses a top-level /postinstall directory to mount the new
157-
# system before reboot.
158-
ifeq ($(AB_OTA_UPDATER),true)
159-
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/postinstall
160-
endif
161156

162157
# The init symlink must be a post install command of a file that is to TARGET_ROOT_OUT.
163158
# Since init.environ.rc is required for init and satisfies that requirement, we hijack it to create the symlink.

0 commit comments

Comments
 (0)