Revert "Cleanup current slot logic"

* This should be left for when/if verity is figured out

This reverts commit 6793b22d9b.
This commit is contained in:
Paul Keith 2018-06-10 04:38:24 +02:00
parent f345537450
commit 9cac358dd2

View File

@ -39,7 +39,11 @@ umount /system || true
if [ "$SYSTEMASROOT" == "true" ]; then
CURRENTSLOT=`getprop ro.boot.slot_suffix`
if [ ! -z "$CURRENTSLOT" ]; then
TARGETSYSTEM=/dev/block/bootdevice/by-name/system"$CURRENTSLOT"
if [ "$CURRENTSLOT" == "_a" ]; then
TARGETSYSTEM=/dev/block/bootdevice/by-name/system_a
else
TARGETSYSTEM=/dev/block/bootdevice/by-name/system_b
fi
else
TARGETSYSTEM=/dev/block/bootdevice/by-name/system
fi