From 61d9e2ab8da3334bcc4a6d4c4eb63dbecccf5e6a Mon Sep 17 00:00:00 2001 From: Dennis Shen Date: Tue, 13 Feb 2024 03:24:08 +0000 Subject: [PATCH] init.rc: create /metadata/aconfig, /metadata/aconfig/flags and /metadta/aconfig/boot dirs Create aconfig dirs on /metadata to store aconfig storage related files. Under /metadata/aconfig we will store the following pb files: 1, aconfig_storage_location.pb, store the location of the storage files for each container. 2, aconfig_flag_persistent_overrides.pb, store the local flag value overrides. Under /metadata/aconfig/flags we will store flag value and info files for each container, this include: 1, .val flag value file 2, .info flag info file Under /metadata/aconfig/boot we will store read only flag value files copied from /metadata/aconfig/flags at boot. These read only files are used to serve flag read queries. Bug: 312444587 Test: m Change-Id: I8ae06e56fc9b9e8c0b06f86e3deb4219d7f49660 --- rootdir/init.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 0646d14a1..f3b2d0379 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -640,6 +640,11 @@ on post-fs restorecon_recursive /metadata/apex mkdir /metadata/staged-install 0770 root system + + mkdir /metadata/aconfig 0750 root system + mkdir /metadata/aconfig/flags 0750 root system + mkdir /metadata/aconfig/boot 0754 root system + on late-fs # Ensure that tracefs has the correct permissions. # This does not work correctly if it is called in post-fs.