• osm0sis's avatar
    scripts: fix find_block false positives /dev/log/kernel and /dev/BOOT · 2aede977
    osm0sis authored
    - try /dev/block first with full depth to catch all platform/soc variations to the by-name directory, and the new dynamic partition /dev/block/mapper
    - next try uevent for block devices as before
    - lastly try /dev with maxdepth 1 (immediate directory) to find /dev/bootimg, /dev/recovery, etc. while avoiding /dev/log/kernel
    - move bootimg higher in the list than boot so /dev/bootimg gets found first and avoids /dev/BOOT
    - recovery_a/_b now also exists
    - minor touch-ups for readability and consistency
    
    Fixes #2720
    2aede977
util_functions.sh 20.9 KB