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
This commit is contained in:
LuK1337
2021-04-01 20:44:19 +02:00
committed by Alessandro Astone
parent be8e53eb32
commit 4fe3f73006

View File

@@ -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