Revert "Support more locations for dtbo img (#24)"

This reverts commit bafe4bd586.

A certain level of functioning recovery is expected by AnyKernel2 (versus this patch's source, the Magisk installer, which is extremely pessimistic).
This commit is contained in:
osm0sis committed 2018-07-13 01:29:33 -03:00
1 parent c545e6779e
commit 5fbae260c0
1 file changed
+1 -2
+1 -2
View File
@@ -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;