sm6250-common: symlink logical partitions in recovery
This commit is contained in:
parent
a1b7eaf9df
commit
ac2d5035c4
9
rootdir/bin/init.recovery.qcom.sh
Normal file
9
rootdir/bin/init.recovery.qcom.sh
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user