Re: [PATCH 4/4] release/live: remove B slot from live image and reduce A slot size

Demi Marie Obenour
2026-01-04T21:16:36Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1732 bytes --]

On 1/4/26 09:00, Johannes Süllner wrote:
> In contrast to the old installer, with the new installer the live image
> is not copied as a whole to the destination disk any more. Instead,
> `systemd-repart` creates partitions with the desired size, and then
> copies the individual partitions.
>
> Signed-off-by: Johannes Süllner <johannes.suellner@mailbox.org>
> ---
> release/live/Makefile | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/release/live/Makefile b/release/live/Makefile
> index f5fe558..34a7d3f 100644
> --- a/release/live/Makefile
> +++ b/release/live/Makefile
> @@ -11,9 +11,7 @@ $(dest): ../../scripts/format-uuid.sh ../../scripts/make-gpt.sh ../../scripts/sf
> ../../scripts/make-gpt.sh $@.tmp \
> build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \
> $(ROOT_FS_VERITY):verity:$$(../../scripts/format-uuid.sh "$$(dd if=$(ROOT_FS_VERITY_ROOTHASH) bs=32 skip=1 count=1 status=none)"):Spectrum_'$(VERSION).verity:162' \
> - $(ROOT_FS_IMAGE):root:$$(../../scripts/format-uuid.sh "$$(head -c 32 $(ROOT_FS_VERITY_ROOTHASH))"):Spectrum_'$(VERSION):20000' \
> - /dev/null:verity:18f2ccff-92f1-4bb1-a80e-24f76ecda90c:_empty:162 \
> - /dev/null:root:ec0c5ff3-f6b1-4adf-82b4-61336c4d135f:_empty:20000
> + $(ROOT_FS_IMAGE):root:$$(../../scripts/format-uuid.sh "$$(head -c 32 $(ROOT_FS_VERITY_ROOTHASH))"):Spectrum_'$(VERSION)'
> mv $@.tmp $@
>
> build/boot.fat: $(SYSTEMD_BOOT_EFI) $(SPECTRUM_EFI)

After this, are there any places left that pass explicit sizes to make_gpt.sh?
If not, the change to add support for this can be reverted.

Thanks for this awesome improvement!
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]