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 9C30A1F4FA; Fri, 19 Sep 2025 09:12:59 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id AABB01F4F0; Fri, 19 Sep 2025 09:12:56 +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-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) by atuin.qyliss.net (Postfix) with ESMTPS id 566211F4EF for ; Fri, 19 Sep 2025 09:12:55 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id B35641400112; Fri, 19 Sep 2025 05:12:53 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Fri, 19 Sep 2025 05:12:53 -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=fm3; t=1758273173; x=1758359573; bh=Y18kD0kB/c VScX/mOBSxySuamCh+OoWMGVbXNvoYNPY=; b=FQKgsMJlzmr3jaxpIvOk7uCYzX 56Wsccu8iaZ4TSiyvYasWc5Nqm6gN6ekQ6uCaPOFT0q68AtnSexttqM/GIrxXK0e +GJogYPBfLcDJlZy9OnIPNPbaQTH6OY9XpwzkV9OpXtqS4/Vrx5T6Rm4RUisIWcZ LakoYJF5n9t3gSXpmZIdyUOr8Nw235sMPSA5wnqxudCkDYeQ4IrwJPnDI+MiTuaR QBxpntvUQc8GIVeucIcm9hhGEhsZKcZo7MtuFt4PQZYtFVLOYLCw9Q/CbvxHhV1U FHwd47aiBgwyH1Wwe5GNQB8Bx3TqRzrGA/4+G1i3lbJOb9FFmmt8bJjuazfQ== 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= 1758273173; x=1758359573; bh=Y18kD0kB/cVScX/mOBSxySuamCh+OoWMGVb XNvoYNPY=; b=jWVEpexq7eR/pNVhFf6neuju9nJsUv6lK5uoYVG1sxUDDh9YBh4 02eHrV729PIQC7FsE0Sg57eQlfZteRqZuxuBlNACeLQcTgQq5pfmYYjjo8fTqMqX d9yDcd1D742fOOvIstviNjDgJ7ediV3YRHEN4RojI5TbPg2TwT27Au4DHDRJxDDW r+Oubci7ekVO3ubI6tZSMDVPD04GsHyyVocEfxO8zZzAcQWXEE4iXdoIWdXoQ+1M hRoay5T2e5r0ErjPijGsQ9in5r3sgmls1bvMDbv82/6B6u5lu39obCmf4ZFf7GL1 wXbZAAVQ3TXJrQ5sizYxta0LJO4x39S+4DQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdegkeekvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepieduffeuie elgfetgfdttddtkeekheekgfehkedufeevteegfeeiffetvdetueevnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Sep 2025 05:12:53 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 9B06E1F87D2C; Fri, 19 Sep 2025 11:12:51 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH 1/3] host/initramfs: Use util-linux switch_root In-Reply-To: <5681fe37-2504-4bc3-8445-7ca9f1160abe@gmail.com> References: <20250914-util-linux-switch-root-v1-0-9cf9349cbca3@gmail.com> <20250914-util-linux-switch-root-v1-1-9cf9349cbca3@gmail.com> <87seglxq0g.fsf@alyssa.is> <5681fe37-2504-4bc3-8445-7ca9f1160abe@gmail.com> Date: Fri, 19 Sep 2025 11:12:49 +0200 Message-ID: <87348iu7ou.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: H5JVCG4WF3PFWPTS6JMFX26R5KMGQRAR X-Message-ID-Hash: H5JVCG4WF3PFWPTS6JMFX26R5KMGQRAR 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 9/17/25 07:44, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> Busybox switch_root doesn't move /proc, /dev, and /sys mounts, whereas >>> the switch_root from util-linux does. >>> >>> Signed-off-by: Demi Marie Obenour >>> --- >>> host/initramfs/default.nix | 3 ++- >>> host/initramfs/etc/init | 4 ---- >>> 2 files changed, 2 insertions(+), 5 deletions(-) >>=20 >> So on the whole, I'm in favour of getting rid of Busybox wherever >> possible, because its implementations tend to be bad. In the case of >> initramfs though, the potential for unexpected circumstances is very >> constrained, and we need something to implement mkfifo, head, kill, and >> rm. So given we're using Busybox for that anyway, we might as well use >> Busybox's smaller implementation of switch_root, right? > > I'd prefer to use util_linux mount and switch_root, and Toybox > mkfifo, head, kill, and rm. That said, Busybox can *work*. > It's just annoying. toybox has no awk, so we'd probably want to come up with some replacement for /etc/getuuids. Aside from that, I'd be happy to be rid of Busybox. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaM0ekQAKCRBbRZGEIw/w omtIAPsG0BlTyEyjDX7BxtG27UIJXSN/EsIj9Ham5yPDpnkviAEA4zIwY+fqjVXX CllI5hx8A8zBl0+ZftySkbuEYgo9kwo= =El1v -----END PGP SIGNATURE----- --=-=-=--