diff options
author | osm0sis <osm0sis@outlook.com> | 2018-07-13 01:29:33 -0300 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2018-07-13 01:29:33 -0300 |
commit | 5fbae260c08a837f90d817af032d3cb4ae341c38 (patch) | |
tree | a2df8d22cf030f778a864a14d7030efbbd41863e /tools/ak2-core.sh | |
parent | c545e6779e87c180fd9824154f0580e937313aed (diff) |
Revert "Support more locations for dtbo img (#24)"
This reverts commit bafe4bd586d27220613e75144a98bfee722d7bec.
A certain level of functioning recovery is expected by AnyKernel2 (versus this patch's source, the Magisk installer, which is extremely pessimistic).
Diffstat (limited to 'tools/ak2-core.sh')
-rwxr-xr-x | tools/ak2-core.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index f23f008..83c8d19 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -316,8 +316,7 @@ flash_boot() { fi; done; if [ "$dtbo" ]; then - dtbo_block=`find /dev/block -iname dtbo$slot | head -n 1` 2>/dev/null; - [ ! -z $dtbo_block ] && dtbo_block=`readlink -f $dtbo_block` + dtbo_block=/dev/block/bootdevice/by-name/dtbo$slot; if [ ! -e "$(echo $dtbo_block)" ]; then ui_print " "; ui_print "dtbo partition could not be found. Aborting..."; exit 1; fi; |