Merge "Create misc_ce and misc_de mirror storage" am: aeee1c6231
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2300222 Change-Id: If7ed93bb7a4b673704b057bb164d393e75a07965 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9c759ea9a5
1 changed files with 8 additions and 2 deletions
|
|
@ -936,16 +936,20 @@ on post-fs-data
|
|||
restorecon /data/media
|
||||
exec - media_rw media_rw -- /system/bin/chattr +F /data/media
|
||||
|
||||
# A tmpfs directory, which will contain all apps CE DE data directory that
|
||||
# bind mount from the original source.
|
||||
# A tmpfs directory, which will contain all apps and sdk sandbox CE and DE
|
||||
# data directory that bind mount from the original source.
|
||||
mount tmpfs tmpfs /data_mirror nodev noexec nosuid mode=0700,uid=0,gid=1000
|
||||
restorecon /data_mirror
|
||||
mkdir /data_mirror/data_ce 0700 root root
|
||||
mkdir /data_mirror/data_de 0700 root root
|
||||
mkdir /data_mirror/misc_ce 0700 root root
|
||||
mkdir /data_mirror/misc_de 0700 root root
|
||||
|
||||
# Create CE and DE data directory for default volume
|
||||
mkdir /data_mirror/data_ce/null 0700 root root
|
||||
mkdir /data_mirror/data_de/null 0700 root root
|
||||
mkdir /data_mirror/misc_ce/null 0700 root root
|
||||
mkdir /data_mirror/misc_de/null 0700 root root
|
||||
|
||||
# Bind mount CE and DE data directory to mirror's default volume directory.
|
||||
# Note that because the /data mount has the "shared" propagation type, the
|
||||
|
|
@ -953,6 +957,8 @@ on post-fs-data
|
|||
# propagate to /data_mirror/data_ce/null/0 as well.
|
||||
mount none /data/user /data_mirror/data_ce/null bind rec
|
||||
mount none /data/user_de /data_mirror/data_de/null bind rec
|
||||
mount none /data/misc_ce /data_mirror/misc_ce/null bind rec
|
||||
mount none /data/misc_de /data_mirror/misc_de/null bind rec
|
||||
|
||||
# Create mirror directory for jit profiles
|
||||
mkdir /data_mirror/cur_profiles 0700 root root
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue