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 B31329A77; Wed, 29 Oct 2025 15:49:59 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 9196E9A8A; Wed, 29 Oct 2025 15:49:57 +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 fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) by atuin.qyliss.net (Postfix) with ESMTPS id 3D6209A87 for ; Wed, 29 Oct 2025 15:49:56 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0786C7A0152; Wed, 29 Oct 2025 11:49:55 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 29 Oct 2025 11:49:55 -0400 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=1761752994; x=1761839394; bh=w/gLacDliJ S6CdAYBqQaN0ycKNeIKwJNHhjwgUSJF4o=; b=j+T62PDDIyNued9YBCnGRweBP9 AShVPC8aBoSZ1Bwm4ahmUMfDuhtvDRHygXsERmMuu7xJ5j6qKtCxk3zNR68YQxSh 8btzwJ/Q5lFYQz18MOUGC7P3k3EMeKKLE6WK2h3kv+Q19vnJTYRdZdWxz9AccLMt gQfpYFK1o0XW5Ris5TnDeUvYehAdtAuWIeOYDnMHWPi4e1rOAyDdB4A7OapCH2wS 4hf6mz98W/VWg3SXR2l8pggSiEHeCNYdvScSj64XPSibPtnZKqRWYZmitWlNfv68 PD+hQYP0nZSRnxKzbCwPZPt5eCO+eVBlRYQHCGRTPcrbjVYB6R/HGHMPWZ6A== 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= 1761752994; x=1761839394; bh=w/gLacDliJS6CdAYBqQaN0ycKNeIKwJNHhj wgUSJF4o=; b=SyQvIAtiUMCiNLS+7fGRDEdynSz2Y8Y2psrSPP1ZlRCMLsNALoT 49m6ZiLYYVuNLmPqOdGvI8uvNaFIozwwe0yOWhYetnhF4T8ZPUafnS5/7HBaY6TQ s+hxkWs5tNDPj6j2unvMiwGWM0QTU27jz7C+AGFCeUB3DOiTwbFad3UFEpBu2iPC A2qxqIZKH9P+3MVUGI57lYn6qoZ52LAFnVfT5+3wIpttfaZXhgJZ0znB3EDxjbgH REDLDYeDmVdv9T/okVnHUAz9/wYbradglZ8WXJHbizHBcespnoc8bhjKMA7O5JzW Qe6DZSM2kmSpj1RaYJTXDqbtDlYT5pl2u2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduieegudefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeiudffue eilefgtefgtddttdekkeehkefgheekudefveetgeefiefftedvteeuveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Oct 2025 11:49:54 -0400 (EDT) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 7D915521C6A; Wed, 29 Oct 2025 16:49:43 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 4/7] Adjust partition layout to support updates In-Reply-To: <20251029-updates-v1-4-401c1be2a11b@gmail.com> References: <20251029-updates-v1-0-401c1be2a11b@gmail.com> <20251029-updates-v1-4-401c1be2a11b@gmail.com> Date: Wed, 29 Oct 2025 16:49:42 +0100 Message-ID: <87frb1aesp.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: OEIEUIFKRT3BWXZTS7HXBYP3P5JX23RT X-Message-ID-Hash: OEIEUIFKRT3BWXZTS7HXBYP3P5JX23RT 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 Demi Marie Obenour writes: > systemd-sysupdate has strict requirements on the partition layout: > > - The label of the active partition must match the template in the > .transfer file. For instance, the root filesystem of Spectrum OS > 0.0.0 will be in a partition with label Spectrum_OS_0.0.0. > - The label of the inactive partition must either be that of the old > version of the OS or "_empty". The former indicates an incomplete > update. > - The partition type UUID must conform to the Discoverable Partition > Specification. > > After installing an image to a partition, systemd-sysupdate updates the > label of the partition to match the image's version. However, it does > not update the partition UUID. Therefore, use the partition label, not > the partition UUID, to find the root filesystem and its verity metadata. > > 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. > > Since the partition label includes the OS version, add an OS version > number. Use 0.0.0 to indicate that Spectrum OS is still in very early > development and should not be used. > > Signed-off-by: Demi Marie Obenour > --- > host/initramfs/Makefile | 17 +++++----- > host/initramfs/default.nix | 2 ++ > host/initramfs/etc/init | 17 +++------- > host/initramfs/etc/probe | 20 ++++++++---- > host/initramfs/shell.nix | 1 + > host/rootfs/Makefile | 23 ++++++++------ > host/rootfs/default.nix | 3 ++ > host/rootfs/shell.nix | 1 + > img/app/Makefile | 2 +- > img/app/default.nix | 5 +-- > lib/kcmdline-utils.mk | 10 +++--- > lib/version.nix | 15 +++++++++ > release/checks/no-roothash.nix | 2 +- > release/live/Makefile | 15 ++++----- > release/live/default.nix | 11 +++++-- > release/live/shell.nix | 4 ++- > scripts/format-uuid.awk | 35 ++++++++++++++++++++ > scripts/format-uuid.sh | 1 + > scripts/make-gpt.bash | 72 ++++++++++++++++++++++++++++++++++++++++++ > scripts/make-gpt.sh | 67 ++------------------------------------- > scripts/make-live-image.sh | 41 ++++++++++++++++++++++++ > scripts/sfdisk-field.awk | 3 +- > version | 1 + > version.license | 2 ++ > vm/sys/net/Makefile | 2 +- > vm/sys/net/default.nix | 5 +-- > 26 files changed, 252 insertions(+), 125 deletions(-) I expect this will change once we figure out what to do about the installer / combined image, so I'm leaving it for now. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaQI3lgAKCRCZddwkt31p FURcAP4pZEHq3PjWjqxLRXgbtXopg4hkAOILewUSSbctD/zLEgEA3RkpJAPTxr2c yIQBgh6A5ntLUYkzY7JW83yxrLN2nAw= =TGb0 -----END PGP SIGNATURE----- --=-=-=--