From a09de7e9266ea074172e5361a9bea36f301b76bb Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 4 Aug 2018 20:05:14 +0200 Subject: [PATCH] CommonInstaller: fix another bug in A/B support --- CommonInstaller | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonInstaller b/CommonInstaller index 17c9c16..d26e8f6 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -188,7 +188,7 @@ error () { mount_partitions () { SLOT=$(grep_cmdline androidboot.slot_suffix) if [ -z ${SLOT} ]; then - SLOT=$(grep_cmdline androidboot.slot) + SLOT=_$(grep_cmdline androidboot.slot) [ "${SLOT}" = "_" ] && SLOT= fi @@ -200,7 +200,7 @@ mount_partitions () { if [ ! -f /system/build.prop ]; then SYSTEMBLOCK=$(find /dev/block -iname system${SLOT} | head -n 1) - mount -t ext4 -o rw $SYSTEMBLOCK /system + mount -t ext4 -o rw ${SYSTEMBLOCK} /system fi [ -f /system/build.prop ] || is_mounted /system || error "failed to mount /system"