Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61d9e2ab authored by Dennis Shen's avatar Dennis Shen
Browse files

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, <container_name>.val flag value file
2, <container_name>.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
parent 749e2e8e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.