Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebba784d authored by Yifan Hong's avatar Yifan Hong
Browse files

Add _b to super.

During OTA, update_engine expects both slots in super,
so that it doesn't have to create the missing slot. Thus,
UUIDs of all logical partitions are consistent. Values
are the result of `uuidgen.py {name}_{slot}` for A/B and
`uuidgen.py {name}` for non-A/B).

Test: adb shell lpdump /dev/block/by-name/super
Bug: 110717529
Change-Id: Ibb90d4dbe1a56bf314d4a02d7aa2f2be18d04855
parent 251a02f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2829,6 +2829,7 @@ define build-superimage-target
    $(foreach name,$(BOARD_SUPER_PARTITION_PARTITION_LIST), \
    $(foreach name,$(BOARD_SUPER_PARTITION_PARTITION_LIST), \
      --partition $(name)$(2):$$($(UUIDGEN) $(name)$(2)):readonly:$(if $(3),$(call read-size-of-partitions,$(name)),0) \
      --partition $(name)$(2):$$($(UUIDGEN) $(name)$(2)):readonly:$(if $(3),$(call read-size-of-partitions,$(name)),0) \
      $(if $(3), --image $(name)$(2)=$(call images-for-partitions,$(name))) \
      $(if $(3), --image $(name)$(2)=$(call images-for-partitions,$(name))) \
      $(if $(2), --partition $(name)_b:$$($(UUIDGEN) $(name)_b):readonly:0) \
    )
    )
endef
endef