From 2fe99a43f1ad168b2ffe3ea3dcfae22ac601c5cd Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Tue, 22 Aug 2017 12:10:46 -0700 Subject: [PATCH] init.hardware.rc: wait for bootdevice symbolic creation Bug: 64925999 Test: reboot with UART on for 20+ iterations Change-Id: I7b574b166a6c2d2c7989e0b7c048fcb764b3983a --- init.hardware.rc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.hardware.rc b/init.hardware.rc index dbce5807..08fd26ef 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -48,6 +48,10 @@ on init write /sys/devices/soc/${ro.boot.bootdevice}/hibern8_on_idle_enable 0 write /sys/module/lpm_levels/parameters/sleep_disabled Y + # QSEE rpmb listener need symlink for bootdevice + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice + # start qseecomd early as we mount system/ vendor/ early # vold needs keymaster that needs qseecomd start qseecomd @@ -158,9 +162,6 @@ on init write /proc/sys/vm/page-cluster 0 on fs - wait /dev/block/platform/soc/${ro.boot.bootdevice} - symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice - mount_all /vendor/etc/fstab.${ro.hardware} --early mkdir /persist/data 0700 system system