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:
parent
f345537450
commit
9cac358dd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user