Add fallback to parse block from fstabs

This commit is contained in:
topjohnwu 2018-07-03 18:28:44 +08:00
parent b5b8c4b725
commit 70243d7a47

View File

@ -181,6 +181,10 @@ find_boot_image() {
else
BOOTIMAGE=`find_block boot_a kern-a android_boot kernel boot lnx bootimg`
fi
if [ -z $BOOTIMAGE ]; then
# Lets see what fstabs tells me
BOOTIMAGE=`grep -v '#' /etc/*fstab* | grep -E '/boot[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1`
fi
}
flash_boot_image() {