Merge branch 'rho' into 'rho'
Ignore {product,system_ext} block devices in case they are symlinks See merge request MindTheGapps/vendor_gapps!8
This commit is contained in:
@@ -175,6 +175,16 @@ exit 1
|
|||||||
fi
|
fi
|
||||||
SYSTEM_OUT="${SYSTEM_MNT}/system"
|
SYSTEM_OUT="${SYSTEM_MNT}/system"
|
||||||
|
|
||||||
|
# Ignore {product,system_ext} block devices in case they are symlinks
|
||||||
|
# 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 [ -L "${SYSTEM_MNT}/system_ext" ]; then
|
||||||
|
SYSTEM_EXT_BLOCK=""
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$PRODUCT_BLOCK" ]; then
|
if [ -n "$PRODUCT_BLOCK" ]; then
|
||||||
mkdir /product || true
|
mkdir /product || true
|
||||||
if mount -o rw "$PRODUCT_BLOCK" /product; then
|
if mount -o rw "$PRODUCT_BLOCK" /product; then
|
||||||
|
Reference in New Issue
Block a user