From 23dc19ad94e3a321f3b2c78e6f265f154c66a8f3 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Fri, 1 May 2020 17:43:45 -0300 Subject: [PATCH] scripts: don't abort if /vendor fails to mount - /vendor is used only on some older devices for recovery AVBv1 signing so is not critical if fails - this fixes installation in Lineage Recovery on some older devices where /vendor is actually by-name partitions like oem, cust (or even cache), which likely also don't require the AVBv1 signing --- scripts/util_functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 24edda2cd..d05f4b96c 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -260,7 +260,8 @@ mount_partitions() { grep ' / ' /proc/mounts | grep -qv 'rootfs' || grep -q ' /system_root ' /proc/mounts \ && SYSTEM_ROOT=true || SYSTEM_ROOT=false fi - [ -L /system/vendor ] && mount_ro_ensure vendor$SLOT /vendor + # /vendor is used only on some older devices for recovery AVBv1 signing so is not critical if fails + [ -L /system/vendor ] && mount_name vendor$SLOT /vendor '-o ro' $SYSTEM_ROOT && ui_print "- Device is system-as-root" # Allow /system/bin commands (dalvikvm) on Android 10+ in recovery