From 50b159b43de02e0c163da85b04112888e3df30d4 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sun, 6 Feb 2022 01:36:02 +0800 Subject: [PATCH] Add init_boot parition --- scripts/util_functions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index c21a8781ee37..d437a39e8108 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -422,15 +422,15 @@ get_flags() { find_boot_image() { BOOTIMAGE= if $RECOVERYMODE; then - BOOTIMAGE=`find_block recovery_ramdisk$SLOT recovery$SLOT sos` + BOOTIMAGE=$(find_block "recovery_ramdisk$SLOT" "recovery$SLOT" "sos") elif [ ! -z $SLOT ]; then - BOOTIMAGE=`find_block ramdisk$SLOT recovery_ramdisk$SLOT boot$SLOT` + BOOTIMAGE=$(find_block "ramdisk$SLOT" "recovery_ramdisk$SLOT" "init_boot$SLOT" "boot$SLOT") else - BOOTIMAGE=`find_block ramdisk recovery_ramdisk kern-a android_boot kernel bootimg boot lnx boot_a` + BOOTIMAGE=$(find_block ramdisk recovery_ramdisk kern-a android_boot kernel bootimg init_boot boot lnx boot_a) fi if [ -z $BOOTIMAGE ]; then # Lets see what fstabs tells me - BOOTIMAGE=`grep -v '#' /etc/*fstab* | grep -E '/boot(img)?[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1` + BOOTIMAGE=$(grep -v '#' /etc/*fstab* | grep -E '/boot(img)?[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1) fi }