diff options
author | Paul Crowley <paulcrowley@google.com> | 2019-09-11 15:02:44 -0700 |
---|---|---|
committer | Paul Crowley <paulcrowley@google.com> | 2019-09-17 18:44:16 +0000 |
commit | 04908a85f0a60dd7ac7bcbe9bf79b8c3ce4e20c9 (patch) | |
tree | c2293c7c314d81f2715e784ffc81bdcb09ed041c /rootdir | |
parent | 271014e8325f17ac1fcf83dede7ce987c293fb2c (diff) | |
download | system_core-04908a85f0a60dd7ac7bcbe9bf79b8c3ce4e20c9.tar.gz system_core-04908a85f0a60dd7ac7bcbe9bf79b8c3ce4e20c9.tar.bz2 system_core-04908a85f0a60dd7ac7bcbe9bf79b8c3ce4e20c9.zip |
Create /data/per_boot
Bug: 140882488
Test: Booted twice, checked logs to ensure encryption
is different each time, adb created files in directory.
Cherry-Picked-From: 570d20d2ac875198416dff280b7a4b7adaacac81
Merged-In: I44f746acd1040f7baa9123d4824ba39b194f287b
Change-Id: I44f746acd1040f7baa9123d4824ba39b194f287b
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index b475728c4..0fa9febdd 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -797,6 +797,9 @@ on property:vold.decrypt=trigger_shutdown_framework on property:sys.boot_completed=1 bootchart stop + # Setup per_boot directory so other .rc could start to use it on boot_completed + exec - system system -- /bin/rm -rf /data/per_boot + mkdir /data/per_boot 0700 system system # system server cannot write to /proc/sys files, # and chown/chmod does not work for /proc/sys/ entries. |