From 2cad5bc89bb8f1df5a514f47a20ac63cc7bfd86d Mon Sep 17 00:00:00 2001 From: padarshr Date: Wed, 28 Jun 2017 15:31:43 +0530 Subject: [PATCH] Create bootdevice symlink just before mounting from fstab. Create /dev/block/bootdevice symlink that points to the actual target specific boot device dev path(emmc/ufs), based on the property ro.boot.bootdevice. This is created in init.target.rc just before partitions are mounted from fstab file (fstab refers to all the partitions through the symlink path). Change-Id: I6f0082a22c4ddcd84c3a1f57a97c7a32a45187a9 --- init.target.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.target.rc b/init.target.rc index 1df32a79..2e1dd3bd 100755 --- a/init.target.rc +++ b/init.target.rc @@ -39,7 +39,8 @@ on init write /dev/stune/top-app/schedtune.colocate 1 on fs - wait /dev/block/bootdevice + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice mount_all /vendor/etc/fstab.qcom swapon_all /vendor/etc/fstab.qcom