From b7722dd05a7360f3fb12234eb83c1f12849da040 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> Date: Fri, 18 Mar 2022 16:37:35 +0100 Subject: [PATCH] oniro-wic: refrain from populating slot B with a copy of slot A This saves half of the space used by compressed disk artifacts. I ran into the issue when creating grubenv recovery logic. To my surprise the execution flow ended up in the case where both slots are available and timestamp on the kernel is used to break the tie. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> --- meta-oniro-core/conf/distro/include/oniro-wic.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oniro-core/conf/distro/include/oniro-wic.inc b/meta-oniro-core/conf/distro/include/oniro-wic.inc index 094bebab..3e57f985 100644 --- a/meta-oniro-core/conf/distro/include/oniro-wic.inc +++ b/meta-oniro-core/conf/distro/include/oniro-wic.inc @@ -48,7 +48,7 @@ WIC_ROOTA_PARTITION ?= "part / --source rootfs --use-uuid --fstype=${ROOT_FSTYPE ${@bb.utils.contains('ROOT_FSTYPE', 'ext4', '--mkfs-extraopts \'-T default\'', '', d)} \ --align 4096 --fixed-size ${ROOTA_PARTITION_SIZE} \ ${WIC_ROOTA_PARTITION_EXTRA_ARGS}" -WIC_ROOTB_PARTITION ?= "part / --source rootfs --use-uuid --fstype=${ROOT_FSTYPE} \ +WIC_ROOTB_PARTITION ?= "part / --source empty --use-uuid --fstype=${ROOT_FSTYPE} \ ${@bb.utils.contains('ROOT_FSTYPE', 'ext4', '--mkfs-extraopts \'-T default\'', '', d)} \ --align 4096 --fixed-size ${ROOTB_PARTITION_SIZE} \ ${WIC_ROOTB_PARTITION_EXTRA_ARGS}" -- GitLab