sm6250-common: symlink logical partitions in recovery

This commit is contained in:
Erfan Abdi 2020-07-15 22:39:41 +03:00 committed by Demon000
parent a1b7eaf9df
commit ac2d5035c4
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/system/bin/sh
while [ ! -d /dev/block/mapper ]; do
sleep 1
done
ln -s /dev/block/mapper/* /dev/block/bootdevice/by-name/
exit 0

View File

@ -6,3 +6,10 @@ on init
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
start init-recovery-qcom-sh
service init-recovery-qcom-sh /init.recovery.qcom.sh
user root
group root
seclabel u:r:recovery:s0
oneshot