summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.rc10
1 files changed, 9 insertions, 1 deletions
diff --git a/init.rc b/init.rc
index 77cc452..19d2de4 100644
--- a/init.rc
+++ b/init.rc
@@ -164,6 +164,10 @@ on property:sys.boot_from_charger_mode=1
on load_all_props_action
load_all_props
+# Indicate to fw loaders that the relevant mounts are up.
+on firmware_mounts_complete
+ rm /dev/.booting
+
# Mount filesystems and start core system services.
on late-init
trigger early-fs
@@ -176,9 +180,13 @@ on late-init
# issued fs triggers have completed.
trigger load_all_props_action
+ # Remove a file to wake up anything waiting for firmware.
+ trigger firmware_mounts_complete
+
trigger early-boot
trigger boot
+
on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
@@ -277,7 +285,7 @@ on post-fs-data
mkdir /data/property 0700 root root
# create dalvik-cache, so as to enforce our permissions
- mkdir /data/dalvik-cache 0771 system system
+ mkdir /data/dalvik-cache 0771 root root
mkdir /data/dalvik-cache/profiles 0711 system system
# create resource-cache and double-check the perms