mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-07 14:27:17 +09:00
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
|
on fs
|
||||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/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…
x
Reference in New Issue
Block a user