This commit adds support for virtual a/b. It is assumed
that super contains only one set of partitions instead
of two slots. A dm-snapshot is created during upgrade
which will be treated as a next partition and changes
will be applied to it. After booting to fota and
successful rw update the snapshot will be merged to
an origin partition.
Change-Id: If0a1f550008b86780a92c9ddbd26f6ee02fdc44c
PARSE_DYNPARTS=`/usr/sbin/parse-dynparts "$SUPERFS" --list-tables`
while read -r part_name part_table; do
- if [ "$part_name" = "rootfs${P_SUFFIX}" ]
+ if [ "$part_name" = "rootfs_a" ]
then
PART_ROOTFS=`map_from_super "$part_name" "$part_table"`
fi
- if [ "$part_name" = "hal${P_SUFFIX}" ]
+ if [ "$part_name" = "hal_a" ]
then
PART_HAL=`map_from_super "$part_name" "$part_table"`
fi