From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 77C0B56CB; Wed, 04 Feb 2026 17:57:10 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id DB031564E; Wed, 04 Feb 2026 17:57:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by atuin.qyliss.net (Postfix) with ESMTPS id BAA115697 for ; Wed, 04 Feb 2026 17:57:04 +0000 (UTC) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4f5p2l6vhjz9tXP for ; Wed, 4 Feb 2026 18:57:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1770227824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JQWN1gqftxcAStTH9Ry31O3zSYTR94q0SJZbKncFFiw=; b=ZtF/uyGhRyVQSCucrS19rspzdPKvZg0zWPwkcVhG26VwCA5raUWu0R6alXT33DUboe8rjN 3uRo9mVqch3sVc8dqcAs4bcDFRthBxHvGe5rl1jQaBvwVapHIlzlzFsDNzuQ/7kAoZ/+j2 3jiUgDXVQqKHh7YYMX8SgkTyhavdKRtamDvAzZrYV+GZRrkHri09x676GhvSoL/sWNwdGk pIjMQ1Zbnt2K+zBka7ZAvB1+CN4GGZ4e7bn8Nn9VSxzI4FnXOA1k2JZOFmlPoVMFkm47nA dVAt2VJqV+rz4BRr0XnGnQn8DrDHUKggcA3gN1vEDcUL3iy6TJvUP2iZsYDb0A== From: =?UTF-8?q?Johannes=20S=C3=BCllner?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1770227823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JQWN1gqftxcAStTH9Ry31O3zSYTR94q0SJZbKncFFiw=; b=E+cN8QipSzvYPMwvzy8/2TqRd/Mwm9lyxMZxs1hGclYS2txR0pM/ybEMhnn3kvYb1xeFKZ 9ZcC3JWw1abZ+EuyTCDSX+jZAdVdv9+B3ovPGn+XrngM71nTnw46AtWi3t8nMcx3bHlKF7 7RMU5DqH6ud6Si232BtklHviUQQwhLWnjp1/DO5SJ4l8T0pwbkrmRCpJPn0NouI96LBOn4 RK30lDBf8RjywvHaU57rtP22sxaeP4J7/f6p1j9VULpIcOhVnV74HBHtzBYVeVT5c1Q2tI VoMUqSqYMbZi6K8nSsu908c5jkFhZS2w6JkWO+lceipovTPymlPsNVlV2MZjzA== To: devel@spectrum-os.org Subject: [PATCH v2 4/5] release/live: remove B slot from live image and reduce A slot size Date: Wed, 4 Feb 2026 18:55:24 +0100 Message-ID: <20260204175543.22164-6-johannes.suellner@mailbox.org> In-Reply-To: <20260204175543.22164-2-johannes.suellner@mailbox.org> References: <20260204175543.22164-2-johannes.suellner@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 82f16058db03992482f X-MBO-RS-META: 3t3opur1dertzgeutzyuxcrqzu5i7r5u Message-ID-Hash: XA4C5FPQHCCJ6O3Z4LN7ENXM3VKOOOPH X-Message-ID-Hash: XA4C5FPQHCCJ6O3Z4LN7ENXM3VKOOOPH X-MailFrom: johannes.suellner@mailbox.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: =?UTF-8?q?Johannes=20S=C3=BCllner?= X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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. So the partitions are effectively enlarged during the installation, making it possible to shrink them to the minimum size here. Signed-off-by: Johannes Süllner --- release/live/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/release/live/Makefile b/release/live/Makefile index f5fe558..2d693f4 100644 --- a/release/live/Makefile +++ b/release/live/Makefile @@ -10,10 +10,8 @@ dest = build/live.img $(dest): ../../scripts/format-uuid.sh ../../scripts/make-gpt.sh ../../scripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES) ../../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_VERITY):verity:$$(../../scripts/format-uuid.sh "$$(dd if=$(ROOT_FS_VERITY_ROOTHASH) bs=32 skip=1 count=1 status=none)"):Spectrum_'$(VERSION).verity' \ + $(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)