Move layout_version to /data/misc/installd

Bug: 139543295
Test: Boot, ensure file is properly created
Change-Id: I919b5599484b4c77f222e640a1f1b5d65198a0c7
This commit is contained in:
Paul Crowley 2019-08-16 12:39:17 -07:00
parent 63fe0e9a36
commit 26aabfd1ed
2 changed files with 3 additions and 1 deletions

View file

@ -532,6 +532,7 @@ on post-fs-data
mkdir /data/misc/profiles/ref 0771 system system
mkdir /data/misc/profman 0770 system shell
mkdir /data/misc/gcov 0770 root root
mkdir /data/misc/installd 0700 root root
mkdir /data/preloads 0775 system system

View file

@ -315,7 +315,8 @@ int main(int argc, char **argv) {
PLOG(ERROR) << "setting RLIMIT_NOFILE failed";
}
while ((fs_read_atomic_int("/data/.layout_version", &fs_version) == -1) || (fs_version < 3)) {
while ((fs_read_atomic_int("/data/misc/installd/layout_version", &fs_version) == -1) ||
(fs_version < 3)) {
LOG(ERROR) << "installd fs upgrade not yet complete; waiting...";
sleep(1);
}