Add option to create metadata mount point
Test: booted metadata-encrypted device Bug: 79781913 Change-Id: Ie922db20314c04409c98700bfb1aff3d111275f0
This commit is contained in:
parent
7905b1e162
commit
fe305ab286
2 changed files with 7 additions and 0 deletions
|
|
@ -93,6 +93,9 @@ ifdef BOARD_USES_PRODUCTIMAGE
|
||||||
else
|
else
|
||||||
LOCAL_POST_INSTALL_CMD += ; ln -sf /system/product $(TARGET_ROOT_OUT)/product
|
LOCAL_POST_INSTALL_CMD += ; ln -sf /system/product $(TARGET_ROOT_OUT)/product
|
||||||
endif
|
endif
|
||||||
|
ifdef BOARD_USES_METADATA_PARTITION
|
||||||
|
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/metadata
|
||||||
|
endif
|
||||||
|
|
||||||
# For /odm partition.
|
# For /odm partition.
|
||||||
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/odm
|
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/odm
|
||||||
|
|
|
||||||
|
|
@ -369,6 +369,10 @@ on post-fs
|
||||||
# create the lost+found directories, so as to enforce our permissions
|
# create the lost+found directories, so as to enforce our permissions
|
||||||
mkdir /cache/lost+found 0770 root root
|
mkdir /cache/lost+found 0770 root root
|
||||||
|
|
||||||
|
restorecon_recursive /metadata
|
||||||
|
mkdir /metadata/vold
|
||||||
|
chmod 0700 /metadata/vold
|
||||||
|
|
||||||
on late-fs
|
on late-fs
|
||||||
# Ensure that tracefs has the correct permissions.
|
# Ensure that tracefs has the correct permissions.
|
||||||
# This does not work correctly if it is called in post-fs.
|
# This does not work correctly if it is called in post-fs.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue