Snap for 5885124 from 04908a85f0a60dd7ac7bcbe9bf79b8c3ce4e20c9 to qt-qpr1-release
Change-Id: I3800a623da88d8b601d6a25e6dbd55babd1a4040
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b475728..0fa9feb 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -797,6 +797,9 @@
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.