From 5fbae260c08a837f90d817af032d3cb4ae341c38 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Fri, 13 Jul 2018 01:29:33 -0300 Subject: [PATCH] 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). --- tools/ak2-core.sh | 3 +-- 1 file changed, 1 insertion(+), 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;