Add fallback to parse block from fstabs
This commit is contained in:
parent
b5b8c4b725
commit
70243d7a47
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user