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 9890117C39; Mon, 21 Jul 2025 09:23:51 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 8C10F17C2E; Mon, 21 Jul 2025 09:23:49 +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-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) by atuin.qyliss.net (Postfix) with ESMTPS id DD5CF17C2D for ; Mon, 21 Jul 2025 09:23:48 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 46B00140023F; Mon, 21 Jul 2025 05:23:48 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 21 Jul 2025 05:23:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=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=fm1; t=1753089828; x=1753176228; bh=KngSkf7sAm q7E3FDsa5lRBNT5sWVu8llWzSbg0gQzyE=; b=XnOtr4Q3QV2EAvNgH93MHPfWX6 s5KDR4ffWAtslwIQfDNRx/jcYpomsp7N0wzFB/IdE+FLbzW8MNqmTwFvhi5rXFtQ BTh94JOqXtBrOELe/8jj1YQtX2bgz9nTu81Ck7BqYiLsySei6mtdzmTn8GiCcLV6 EvZXNTCgmFMswgOmSE1NDqUYqwcvUvFQye7lt6CE05FX04Txl6WpRanr98VWZ3CS 7SPXHE7t/q/u+mgF/m/HrGDNz9QLyYKYtFRtiz2Ay6SU23CK7SzBg3OpdGnEDgJi rff7HpSK/KAPZZ7wU8UPCdHV+0GsSJEPW211fumkonpWWwZAdV1zaSdmBe1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm2; t= 1753089828; x=1753176228; bh=KngSkf7sAmq7E3FDsa5lRBNT5sWVu8llWzS bg0gQzyE=; b=FT7/GRp+GxeJgOuKKcdCIxXDOyMc3Fe2f7YRR3tPXLe5cb39RY5 52+tJQLJlUvY3JZQFJtHgctpYuu++EagW3WTVSyOxuyiAs00mq9Y7wMTMehP+vh4 HVSdioJXhdCVZ1M1M+9y1Iy7PYIX4XZZfdwcCUhoj8FT3RvxXNqCc8yf2hHm2r6Q Hlsm8ts6pzJi99MdCVfG7bCE1vL/3skSDPh6+QMeo795bPwiOyrkkqsn7TX2pNHJ iUIE2omG0hj0UaS++OiW0chGp0kS5PazArBjWKxbgPgDZNYGtZPXpkgEf0/wEuTL YRuFMhWAov/1vGAdvQP1/9Hz9OwbaSlW8Yw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdejudejtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvffujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcutfho shhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpedvuedviedvhe fhieektddvvdehgfehffelveeuiefggfdtffffueejudejjeekjeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhish dpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggv mhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsph gvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Jul 2025 05:23:47 -0400 (EDT) Received: by sf.qyliss.net (Postfix, from userid 1000) id 3EF922CCA0BA9; Mon, 21 Jul 2025 11:23:47 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: [PATCH v5 6/8] img/app: create /run/user and /run/wait very early in boot In-Reply-To: <7b6f97a9-3e0d-4b7d-92d0-fd34098f3e49@gmail.com> References: <7b6f97a9-3e0d-4b7d-92d0-fd34098f3e49@gmail.com> Date: Mon, 21 Jul 2025 11:23:46 +0200 Message-ID: <87v7nllwwt.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: LONKFCGM2KY2BNYQ77WJ253W5O5Z4J3L X-Message-ID-Hash: LONKFCGM2KY2BNYQ77WJ253W5O5Z4J3L 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 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: > There's no real reason not to use the existing call to mkdir for that. > This allows getting rid of calls to mkdir from directories/up, > mdev/listen, and mdev/wait, so the overall diffstat is negative. > > Signed-off-by: Demi Marie Obenour > --- > img/app/etc/mdev/listen | 1 - > img/app/etc/mdev/wait | 1 - > img/app/etc/s6-linux-init/scripts/rc.init | 2 +- > img/app/etc/s6-rc/directories/up | 1 - > 4 files changed, 1 insertion(+), 4 deletions(-) > > diff --git a/img/app/etc/mdev/listen b/img/app/etc/mdev/listen > index 8c8d86407d1f131cf28f335c8f1028d731916203..ab50ee8c5ed1139d1129bac56= afa7263af150745 100755 > --- a/img/app/etc/mdev/listen > +++ b/img/app/etc/mdev/listen > @@ -4,7 +4,6 @@ >=20=20 > foreground { > redirfd -w 2 /dev/null > - foreground { mkdir /run/wait } > mkfifo /run/wait/${1} > } >=20=20 > diff --git a/img/app/etc/mdev/wait b/img/app/etc/mdev/wait > index 625cd46dc06618309ebaa7230f0bed49e248f3a8..6bddb303d2671ce4e5b8581cd= 81235d7404916e7 100755 > --- a/img/app/etc/mdev/wait > +++ b/img/app/etc/mdev/wait > @@ -4,7 +4,6 @@ >=20=20 > foreground { > redirfd -w 2 /dev/null > - foreground { mkdir /run/wait } > mkfifo /run/wait/${1} > } >=20=20 > diff --git a/img/app/etc/s6-linux-init/scripts/rc.init b/img/app/etc/s6-l= inux-init/scripts/rc.init > index a9e43aae685597b94ebcd431d4bb560f2d02a92e..d8b71affa1752c6fd7455412c= de9c76fa0752713 100755 > --- a/img/app/etc/s6-linux-init/scripts/rc.init > +++ b/img/app/etc/s6-linux-init/scripts/rc.init > @@ -4,7 +4,7 @@ >=20=20 > if { s6-rc-init -c /etc/s6-rc /run/service } >=20=20 > -if { mkdir -p -m 0755 /dev/pts /dev/shm } > +if { mkdir -p -m 0755 /dev/pts /dev/shm /run/user /run/wait } Let's do this with run-image in the Makefile as well. > if { modprobe overlay } > if { mount -a } >=20=20 > diff --git a/img/app/etc/s6-rc/directories/up b/img/app/etc/s6-rc/directo= ries/up > index be60547cc7ba562d3220fabbe5bca630aa4b1f1a..d2688029151d622eba1a2d9d0= 6e4435e4ff632e6 100644 > --- a/img/app/etc/s6-rc/directories/up > +++ b/img/app/etc/s6-rc/directories/up > @@ -7,5 +7,4 @@ > # SPDX-FileCopyrightText: 2022 Unikie >=20=20 > if { mkdir -m 1777 /tmp/.X11-unix /tmp/.ICE-unix /tmp/.XIM-unix /tmp/.fo= nt-unix } > -if { mkdir -m 0755 /run/user } > if { mkdir -m 0700 /run/user/0 } > --=20 > Sincerely, > Demi Marie Obenour (she/her/hers) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaH4HIgAKCRBbRZGEIw/w olOjAP0bXE1c04qs+IkKdMvYIZec11rnMyqGrmTWtOfoevysMgEA/02zzWhRb/QH ZWxJlXs+y3tACROCF1FtlGjH53nwHgc= =riw3 -----END PGP SIGNATURE----- --=-=-=--