From 284962431bc8eb0930dba17b0e0b5808f2de83a3 Mon Sep 17 00:00:00 2001 From: Songchun Fan Date: Tue, 17 Dec 2019 12:41:34 -0800 Subject: [PATCH] [incremental] create /data/incremental in init.rc We use /data/incremental to keep all the directories that are mounted on the Incremental File System. Since system_server does not have permission to dynamically create dirs directly under /data, we create /data/incremental in init.rc. Test: boots BUG: 136132412 Change-Id: Ic90cc8f652672a8d4459c0cd38db9c0872217af4 --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 782fb928f..0327bd002 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -666,6 +666,9 @@ on post-fs-data mkdir /data/rollback 0700 system system encryption=DeleteIfNecessary mkdir /data/rollback-observer 0700 system system encryption=DeleteIfNecessary + # Create root dir for Incremental Service + mkdir /data/incremental 0770 system system encryption=None + # Wait for apexd to finish activating APEXes before starting more processes. wait_for_prop apexd.status ready parse_apex_configs