Also create dirs under /first_stage_ramdisk for GKI.

If the device uses GKI and generic ramdisk, also create
empty directories under /first_stage_ramdisk so that they
won't have to be created at runtime. This allows generic
ramdisk to be not writable.

Test: boots
Bug: 173425293
Change-Id: If987cb1d4af9f9ee94a43a4523f9e1465b01b16a
This commit is contained in:
Yifan Hong 2020-12-08 12:34:45 -08:00
parent 63be35649a
commit 55326187ab
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ my_ramdisk_dirs := \
sys \
LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_RAMDISK_OUT)/,$(my_ramdisk_dirs))
ifeq (true,$(BOARD_USES_GENERIC_KERNEL_IMAGE))
LOCAL_POST_INSTALL_CMD += $(addprefix $(TARGET_RAMDISK_OUT)/first_stage_ramdisk/,$(my_ramdisk_dirs))
endif
my_ramdisk_dirs :=