Merge "Mount /tmp as tmpfs." into main
This commit is contained in:
commit
97807b79e6
2 changed files with 7 additions and 1 deletions
|
@ -97,7 +97,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 bootstrap-apex debug_ramdisk \
|
||||
linkerconfig second_stage_resources postinstall $(BOARD_ROOT_EXTRA_FOLDERS)); \
|
||||
linkerconfig second_stage_resources postinstall tmp $(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; \
|
||||
|
|
|
@ -92,6 +92,12 @@ on early-init
|
|||
# checker programs.
|
||||
mkdir /dev/fscklogs 0770 root system
|
||||
|
||||
# Create tmpfs for use by the shell user.
|
||||
mount tmpfs tmpfs /tmp
|
||||
restorecon /tmp
|
||||
chown shell shell /tmp
|
||||
chmod 0771 /tmp
|
||||
|
||||
on init
|
||||
sysclktz 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue