From 4fe3f73006873f037a4f7aa6c86dd8ac1d93c1e3 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 1 Apr 2021 20:44:19 +0200 Subject: [PATCH] Ignore product block device in case it's a symlink This is common on devices where maintainers have chosen not to use real partitions because of their size being too small to be useful --- build/meta/com/google/android/update-binary | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index d44ba4c..56a7dbe 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -148,6 +148,13 @@ exit 1 fi SYSTEM_OUT="${SYSTEM_MNT}/system" +# Ignore product block device in case it's a symlink +# This is common on devices where maintainers have chosen not to use +# real partitions because of their size being too small to be useful +if [ -L "${SYSTEM_MNT}/product" ]; then +PRODUCT_BLOCK="" +fi + if [ -n "$PRODUCT_BLOCK" ]; then mkdir /product || true if mount -o rw "$PRODUCT_BLOCK" /product; then