g12: Symlink bootdevice for Lineage Recovery
authorMarc Bourgoin <themard85@gmail.com>
Thu, 25 Jun 2020 02:15:33 +0000 (22:15 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 21:19:04 +0000 (17:19 -0400)
* It is needed by OpenGApps install script.

Change-Id: Idb90a6ecaae541e74a9878c1ca93459cc2fdd949

init-files/init.recovery.amlogic.rc

index 46c982c7a32688bcd9f4f16356833a6eb425af16..c1663f1ad2df410d1cc328b13c1a502810efbfbe 100644 (file)
@@ -6,6 +6,8 @@ on init
     chmod 0777 /sbin/remotecfg
 
 on fs
+    wait /dev/block/platform/${ro.boot.boot_devices}
+    symlink /dev/block/platform/${ro.boot.boot_devices} /dev/block/bootdevice
 
 on post-fs-data
     chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file