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
This commit is contained in:
padarshr 2017-06-28 15:31:43 +05:30 committed by Gerrit - the friendly Code Review server
parent d28595c12b
commit 2cad5bc89b

View file

@ -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