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 BA5B31B249; Sat, 01 Nov 2025 12:13:15 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id B0CB91B1DB; Sat, 01 Nov 2025 12:13:13 +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-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) by atuin.qyliss.net (Postfix) with ESMTPS id C42AD1B1D4 for ; Sat, 01 Nov 2025 12:13:11 +0000 (UTC) Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id AD3981D0014D; Sat, 1 Nov 2025 08:13:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Sat, 01 Nov 2025 08:13:09 -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=1761999189; x=1762085589; bh=jecfO7mI9/ SlgyRHRavov0gW0Gh7cbzmzBmwhoDNkNM=; b=Wnax/oNv+plbIlggZoveMHIopd fZhqedS4jr9HTBoUH5Wgl9X4ODqIGxjbE0dLqDg7RxViSexChM/XHfJyNFGMaI94 fa2Xp8/2eLi2QGyDH2bc5uLBUbQu20+dpLNXembF31wVsuyBvpTcALHlVL0eGwiA zWVQ/rdZFHsf8yvT7kYahyzvbDl1hJfhOmTNaW96PoLbYokIKfh5O+fRfd02MXa7 l/6cx+kcLzN0n8N/Jdzd9AA+M2+5FwbbBKpGerNMTl+DLHJtxKOzaWsC9M+wa8+5 uE/xor8xLfOddWEoicNrImizepb+o144KrgRu+XkRN/Nmqzs4/7WJvUOzAUQ== 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= 1761999189; x=1762085589; bh=jecfO7mI9/SlgyRHRavov0gW0Gh7cbzmzBm whoDNkNM=; b=UJ2v+SfMYkYDsbzlOLTJDqUKCyo+3ZqVZ9gyDgEQr4hThI4prZt rULAjyPmQ9TuOs8pn2KBlrNr8D4ppzib5lcAnywU691i67+atUepDpuWguFforyW U/oO4MmrTy1a1WuBGvmC/CtWX0QtAtvDdxg3Wn6/zMsqMv5DAapd8JXyZmOJwIZ4 GIH76MGSgvKjrM6UZGxIUuA5NZ0Vs4a1GRMbLOrgrLaO7CJfamlw8hH1fBoyK3hd xqsKwol0oSkNaEItGdNWsTrO8H8BS6u+/X5d7hyq7vButI++JZdXHv1/17F6o3EO IYg/ICFrzyTfP+/YnQpdJzdQdJPTJ5pqEmQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddujedvfeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeiudffue eilefgtefgtddttdekkeehkefgheekudefveetgeefiefftedvteeuveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Nov 2025 08:13:08 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 70B9E62B5DD3; Sat, 01 Nov 2025 13:13:07 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 1/7] host/rootfs: Use full util-linux and systemd In-Reply-To: <573737f4-3146-4dd0-b0fd-63fc94e54654@gmail.com> References: <20251029-updates-v1-0-401c1be2a11b@gmail.com> <20251029-updates-v1-1-401c1be2a11b@gmail.com> <87y0ouj5x7.fsf@alyssa.is> <573737f4-3146-4dd0-b0fd-63fc94e54654@gmail.com> Date: Sat, 01 Nov 2025 13:13:06 +0100 Message-ID: <87ecqiq7cd.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: ZJGVRBB4ECGQWCGLUXJYGMCR7BRD2KMI X-Message-ID-Hash: ZJGVRBB4ECGQWCGLUXJYGMCR7BRD2KMI 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: > On 10/29/25 07:36, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> Busybox provides a broken fdisk that doesn't support GPT, only MBR. >>> The systemd built against musl doesn't include systemd-pull, so >>> systemd-sysupdate doesn't work. Therefore, use all of util-linux's >>> command-line tools, and use systemd built against glibc. >>=20 >> That's a problem that's going to need to be fixed. We're not mixing two >> different libcs on the host. > > Unfortunately, systemd-pull can't be built with musl libc. That leaves > four options: > > 1. Try to fix the build problem, knowing that it could come back. > 2. Mix two libcs on the host. > 3. Try to fix the build (but this could take quite a while to upstream). > 4. Use glibc on the host. > > I don't think we should ship with option 2, but I think it might be > acceptable until the underlying problem is solved. Depends how hard it is to fix I suppose. What's the actual issue? >>> diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix >>> index 0d79f7ca54ccc86eb0fa6e743f2011237d365f24..00052222507077b9e94a5ed= 0a3fbddd27caeefc3 100644 >>> --- a/host/rootfs/default.nix >>> +++ b/host/rootfs/default.nix >>> @@ -4,20 +4,20 @@ >>>=20=20 >>> import ../../lib/call-package.nix ( >>> { callSpectrumPackage, spectrum-build-tools, src >>> -, pkgsMusl, pkgsStatic, linux_latest >>> +, pkgsMusl, pkgsStatic, linux_latest, systemd >>> }: >>> pkgsStatic.callPackage ( >>>=20=20 >>> { busybox, cloud-hypervisor, cryptsetup, dbus, erofs-utils, execline >>> , inkscape, inotify-tools, iproute2, jq, lib, mdevd, nixos >>> , runCommand, s6, s6-linux-init, s6-rc, socat, spectrum-host-tools >>> -, stdenvNoCC, util-linuxMinimal, virtiofsd, writeClosure >>> +, stdenvNoCC, util-linux, virtiofsd, writeClosure >>=20 >> util-linuxMinimal =3D util-linux.override { >> cryptsetupSupport =3D false; >> nlsSupport =3D false; >> ncursesSupport =3D false; >> pamSupport =3D false; >> shadowSupport =3D false; >> systemdSupport =3D false; >> translateManpages =3D false; >> }; >>=20 >> So how come we need the non-minimal version? > > I didn't check. Let's stick with the minimal one until there's a need, then. >>> + # clobber any conflicting files from busybox >>> + ln -sft "$out/usr/bin" ${escapeShellArg util-linux}/bin/* >>=20 >> The approach we've taken so far is to disable those tools in Busybox, >> and avoid conflicting symlinks, and I like that better. Alternatively, >> if you want to figure out which Busybox tools are actually needed, we >> could switch to a minimal build and enable only what we use. > > I don't want to block on either of those, and I'd rather not risk > breaking the build whenever util-linux adds a new tool. It's pretty > clear that util-linux is to be preferred over Busybox in the event > of a conflict. > > This does add bloat, but there are far *more* sources of bloat right > now, so I think that should be part of a more general debloating > effort. How would disabling the conflicting tools in Busybox like we've done so far block? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaQX5UgAKCRBbRZGEIw/w oiHwAP46N88TagvAKM7KjxfqRXs57I6q6xf0qxcwu9XMCMgcqgEAiNeBR9BpGA5k e4ygYSwuykgRBw98hu3+076dUPleKQg= =qdvw -----END PGP SIGNATURE----- --=-=-=--