fixSPL: More robust partition matching
OP6 has a partition called boot_aging. It would get matched instead of
boot_a when on slot A
diff --git a/rw-system.sh b/rw-system.sh
index 86dc044..61076cc 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -8,8 +8,8 @@
else
setprop ro.keymaster.mod 'AOSP on ARM64'
fi
- img="$(find /dev/block -type l |grep by-name |grep /kernel$(getprop ro.boot.slot_suffix) |head -n 1)"
- [ -z "$img" ] && img="$(find /dev/block -type l |grep by-name |grep /boot$(getprop ro.boot.slot_suffix) |head -n 1)"
+ img="$(find /dev/block -type l -name kernel$(getprop ro.boot.slot_suffix) |grep by-name |head -n 1)"
+ [ -z "$img" ] && img="$(find /dev/block -type l -name boot$(getprop ro.boot.slot_suffix) |grep by-name |head -n 1)"
if [ -n "$img" ];then
#Rewrite SPL/Android version if needed
Arelease="$(getSPL $img android)"