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 E03A43DFD; Tue, 25 Nov 2025 16:31:42 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 550103DF5; Tue, 25 Nov 2025 16:31:40 +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_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) by atuin.qyliss.net (Postfix) with ESMTPS id 6F86A3E34 for ; Tue, 25 Nov 2025 16:31:38 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 2DEBFEC00F3; Tue, 25 Nov 2025 11:31:36 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 25 Nov 2025 11:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1764088296; x=1764174696; bh=OlAydU1peY d6MMauaO8m7fxtNXYI+o4Xis8kKXYaXmQ=; b=m9IQq4PVuIdjxpiolrEu6Yjp+J wpeO3c6WRvIM1IFMXakaPrXdUpkQixFNlg+qFYFeXGt9V8HZnAVlHRJ/Drsj5CBN G1eFeQNbVRTciK8h/Y7XUlbVsKfL/+U97XRq4pofJPfJjKxHBZOAu1MxDRsldJfo hFzpnoQvJjexbfQy1Y7gqUhBjwKPWK+yv85jz7JcxzB0w1mu3uOlcALGU2mzERIH R0oZXvqifhb7zpH8lTgllYxCI3LA7FmmEIqfsdiv/TGTJwDFai5JpAGP58vPGhAq 4AoXO1Q2ke1W4UqSSJtcG5UYtjMHq42UFzLn2SEqC8oLaZCxs84vsh4efCug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1764088296; x=1764174696; bh=OlAydU1peYd6MMauaO8m7fxtNXYI+o4Xis8 kKXYaXmQ=; b=W4rYSeXyYQQJb9b9yRpkHKunmjoBc6G4tiJTuuSPoxys0og9GN7 6iXoELpIEtmx1hBorMzI2W2/P2ovokPx5eniEjApQzbhLLaclPagFm+IsVv20wEb XuzykYtBK9kZWugeEp8x0NpYRN/MMnQvpc+UootJWxRAEATJ6thLmN6Z5cSczW9i 9/03Zsw9tahEsKffPEXT5r4qUPe5w3SI9BfEho0iTy2Fxw24Wx/ihqah9g3WaIik fw9kw43gtEyFFj6ISf2tEi3EokAAm9YZBhtgCX9p1ueagRcFlCr/BjHDc4nmKwHg RtjfxS3Cc4jIC0Bb7iz3j5Z4GErFmn074MQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeduleeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeiudffue eilefgtefgtddttdekkeehkefgheekudefveetgeefiefftedvteeuveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Nov 2025 11:31:35 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 3729C25FD6A5; Tue, 25 Nov 2025 17:31:19 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v4 10/14] Add B partitions to installation images In-Reply-To: <20251121-updates-v4-10-d4561c42776e@gmail.com> References: <20251121-updates-v4-0-d4561c42776e@gmail.com> <20251121-updates-v4-10-d4561c42776e@gmail.com> Date: Tue, 25 Nov 2025 17:31:17 +0100 Message-ID: <87tsyi13ca.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: ATE2YCIZS37DZJM5LG6NDWITJWHAWC6P X-Message-ID-Hash: ATE2YCIZS37DZJM5LG6NDWITJWHAWC6P X-MailFrom: hi@alyssa.is 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: Spectrum OS Development 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: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > systemd-sysupdate never writes to the running OS partition. Instead, it > requires a separate partition to write the update into. Create a > separate partition for that purpose. > > systemd-sysupdate will fail if the OS image does not fit in the > partitions that the installer created. Therefor, make the partitions > very large so that there is plenty of room for the OS to grow. This > requires rewriting the code that calculates the partition sizes. > > Signed-off-by: Demi Marie Obenour > --- > Changes since v2: > - Make into a standalone commit > - Do not rely on separate script to generate the images. > - Use a smaller size for the verity partition. > --- > release/live/Makefile | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/release/live/Makefile b/release/live/Makefile > index a85edfde2d186716656ed23fe719ca63b31bcd59..cf2ace4f5e4ba20a2c0ce9803= f72acf0e23f9df3 100644 > --- a/release/live/Makefile > +++ b/release/live/Makefile > @@ -10,12 +10,15 @@ DTBS ?=3D build/empty > dest =3D build/live.img >=20=20 > $(dest): ../../scripts/format-uuid.awk ../../scripts/make-gpt.sh ../../s= cripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES) > + # 162MiB was calculated by running `veritysetup format` on 20GiB from /= dev/urandom > uuids=3D$$(awk -f ../../scripts/format-uuid.awk < $(ROOT_FS_VERITY_ROOT= HASH)) && \ > set -euo pipefail -- $$uuids && \ > bash ../../scripts/make-gpt.sh $@.tmp \ > build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \ > - $(ROOT_FS_VERITY):verity:$$3:Spectrum_'$(VERSION).verity' \ > - $(ROOT_FS):root:$$1:Spectrum_'$(VERSION)' > + $(ROOT_FS_VERITY):verity:$$3:Spectrum_'$(VERSION).verity:162MiB' \ > + $(ROOT_FS):root:$$1:Spectrum_'$(VERSION):20000MiB' \ > + $(ROOT_FS_VERITY):verity:$$4:_empty:162MiB \ > + $(ROOT_FS):root:$$2:_empty:20000MiB Why are we filling the B partitions rather than leaving them empty? > mv $@.tmp $@ >=20=20 > build/empty: > > --=20 > 2.52.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaSXZ1gAKCRCZddwkt31p FddXAP9bBPIB3Gg07ffkIZBDATKSzDHZC8AHOLHU9HuvM02JzgEA1dUdnZaR5CWo uGTeCz3XOtkU8tfdJWeHVntsq8QaUQ8= =VWmG -----END PGP SIGNATURE----- --=-=-=--