Commit 70243d7a authored by topjohnwu's avatar topjohnwu

Add fallback to parse block from fstabs

parent b5b8c4b7
...@@ -181,6 +181,10 @@ find_boot_image() { ...@@ -181,6 +181,10 @@ find_boot_image() {
else else
BOOTIMAGE=`find_block boot_a kern-a android_boot kernel boot lnx bootimg` BOOTIMAGE=`find_block boot_a kern-a android_boot kernel boot lnx bootimg`
fi 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() { flash_boot_image() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment