|
|
|
@ -227,13 +227,10 @@ mount_partitions () {
|
|
|
|
|
|
|
|
|
|
[ ! -f /system/build.prop ] && error "failed to mount /system (unsupported A/B device?)"
|
|
|
|
|
|
|
|
|
|
if [ -L /system/vendor ]; then
|
|
|
|
|
is_mounted /vendor || mount -o ro /vendor 2>/dev/null
|
|
|
|
|
if ! is_mounted /vendor; then
|
|
|
|
|
VENDORBLOCK=$(find /dev/block -iname vendor${SLOT} | head -n 1)
|
|
|
|
|
mount -t ext4 -o ro ${VENDORBLOCK} /vendor
|
|
|
|
|
fi
|
|
|
|
|
is_mounted /vendor || error "failed to mount /vendor"
|
|
|
|
|
is_mounted /vendor || mount -o ro /vendor 2>/dev/null
|
|
|
|
|
if ! is_mounted /vendor; then
|
|
|
|
|
VENDORBLOCK=$(find /dev/block -iname vendor${SLOT} | head -n 1)
|
|
|
|
|
mount -t ext4 -o ro ${VENDORBLOCK} /vendor 2>/dev/null
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|