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 62E4A161F8; Fri, 28 Nov 2025 11:22:05 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 9BFD51616E; Fri, 28 Nov 2025 11:22:03 +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-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) by atuin.qyliss.net (Postfix) with ESMTPS id C6725161ED for ; Fri, 28 Nov 2025 11:22:01 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id A39681D00533; Fri, 28 Nov 2025 06:21:59 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Fri, 28 Nov 2025 06:21:59 -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=fm3; t=1764328919; x=1764415319; bh=xvMS+Joeap j97ecEyWxFJPafXPpz7Vc0B5gzDQqUsVY=; b=Bpquy05XGbm1w5ikhgYsf9B0vG CCP5pIZkfXxUNrxDWbRhCNf5ZsJRUhUkRfgrT5eDt1a23zxV7zTx2SSqjTXgfc9V n0OhD2SZPBzjhZlcLeuIYaJziXmmX45CGWSqbD/L21sCTJ+6VMZrnE3wWD2o5RSz X5cmbCBrnoq4eIa/OyyxNIeXB4muQ/zcTHkPp4F0/Eba2+1j0+u39XaKeBvIw2JD DgA93GvhrWIAIP08QShxdwwCLGsPBp3vgQ41LJjWjyNNVZ577S2fMP5eby2hrk9u RmnedlCc15ldOX20iL2912dkpIKkuy3NQ3nkuf/Qc5QMFfT+xRc0EoxhcmZw== 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=fm1; t= 1764328919; x=1764415319; bh=xvMS+Joeapj97ecEyWxFJPafXPpz7Vc0B5g zDQqUsVY=; b=ip7KF68zVZNXF16x5ZjV4AEPVJRViRgkZTGx25ufBwloGuR0B0B wzH7XBF2eSL4WRF0YE35yYlxozh932kJQer0B/NcAOlrwH0F7g7MbaI8Hejefe6+ BfMs+A3KwVTLUmGvdvLcPKrXqQe+mUKkkz3Zz8Cw8QU3EMUbk2cIL04B5ffEzg5M clAB5JGY8bcxqnQp9iiddcRPlIGk4opd58JzeWza6pJ0mSR/pKDZNu8QMAEOykHd JCnFqOcxc8z/N3Oxm79m4gUW1GzjUvmE99n4gHk6JgErJORN4SOwOgCTsLaMZzpe y0nSzNv+pWA1ab22rBzHeBmju2pldPkvLNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeeljeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeefuddtge fgfffhgfeuleelueektdetgeeljeeltdffhfefieekkedvieehjeevheenucffohhmrghi nhepghhithhhuhgsrdgtohhmpdhsphgvtghtrhhumhdqohhsrdhorhhgpdgtfhhgrdhinh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihes rghlhihsshgrrdhishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepuggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthho peguvghvvghlsehsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Nov 2025 06:21:58 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id D560B2BE3373; Fri, 28 Nov 2025 12:21:41 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v5 07/13] release: Compress installation images and remove live image In-Reply-To: <20251126-updates-v5-7-fd746748febd@gmail.com> References: <20251126-updates-v5-0-fd746748febd@gmail.com> <20251126-updates-v5-7-fd746748febd@gmail.com> Date: Fri, 28 Nov 2025 12:21:40 +0100 Message-ID: <875xaupfln.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: 6QFVK4A7BRIH4LHRLQQVEHAXOCIH7CWT X-Message-ID-Hash: 6QFVK4A7BRIH4LHRLQQVEHAXOCIH7CWT 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 will fail if the OS image does not fit in the > partitions that the installer created. Therefor, the partitions need to > be very large so that there is plenty of room for the OS to grow. > Furthermore, systemd-sysupdate requires both A and B copies of both the > root and verity partitions. > > mkfs.ext4 is not able to produce images with files large enough to hold > both the primary and backup copy of the root partition [1]. Reducing > the sizes of partitions to be little greater than the size of the root > filesystem image does not help. The produced file is still too large. > Therefore, compress the image, which causes it to be small enough that > mkfs.ext4 can handle it. > > This breaks the option to use the installer as a live image. Therefore, > remove it. This option will return once Spectrum switches to the GNOME > OS installer [2]. However, it is still possible to build a live image > that is separate from the installer. Document how to build and use it. > > GRUB2 does support compressed loopback images, but these presumably > buffer the whole image in memory. Since the entire installer will be > replaced, making it work is not considered worthwhile. > > [1]: https://github.com/tytso/e2fsprogs/issues/254 > [2]: https://spectrum-os.org/lists/archives/spectrum-devel/87wm4dlkhz.fsf@alyssa.is/ > > Signed-off-by: Demi Marie Obenour > --- > Changes since v4: > - Replace a mention of "Try Spectrum" with a mention of the live image. > - Combine instructions for building an installer and a live image. > - Drop the config option for the compression level. > - Drop unnecessary quoting changes. > - Drop unnecessary 'set -euo pipefail'. > > Changes since v3: > - Make the compression level configurable. The default is 1 so that > development builds finish in a reasonable amount of time. Release > builds should use compression level 9. > > Changes since v2: > - Remove live image test instead of skipping it. > - Document the change. > - Document that there is still a live image available, though it is > separate from the installer. > - Document how to build the live image. > > Signed-off-by: Demi Marie Obenour > --- > Documentation/installation/getting-spectrum.adoc | 44 ++++++++++++++++-------- > host/initramfs/Makefile | 8 ----- > host/initramfs/etc/probe | 20 ----------- > release/checks/integration/meson.build | 2 +- > release/checks/integration/try.c | 29 ---------------- > release/combined/eosimages.nix | 8 ++--- > release/combined/grub.cfg.in | 5 --- > 7 files changed, 35 insertions(+), 81 deletions(-) Reviewed-by: Alyssa Ross But I'd still like to get to the bottom of whether release/installer works. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaSmFxAAKCRCZddwkt31p FW0DAP9KnlNOv9s4gvtl5eRyU56uKWJVPfc2TYup/sy1FofRfgD9G5D9muP/ozUn FplxZIwUY1AJ6lCvu6/S/xSypK/p6g8= =okhw -----END PGP SIGNATURE----- --=-=-=--