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 49D8A859B; Sat, 13 Dec 2025 10:59:55 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 69D6E8551; Sat, 13 Dec 2025 10:59:52 +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-a1-smtp.messagingengine.com (fout-a1-smtp.messagingengine.com [103.168.172.144]) by atuin.qyliss.net (Postfix) with ESMTPS id B1AD98595 for ; Sat, 13 Dec 2025 10:59:50 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 29F2EEC06A1; Sat, 13 Dec 2025 05:59:47 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Sat, 13 Dec 2025 05:59:47 -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=1765623587; x=1765709987; bh=vc3/RSSMjA oWOOplyr7G0owEzxS9ZAB02G2LXLTREts=; b=CttdFaNIBDKNxAZ+RO2eEJl9v1 PuxhtROgDKC+0qmKHWpgAAPcnPBjtcBFprZcQXO2sXuZxbWj9BSdB7FwJMHnS8vN vN8q7jtAT8SvdDr7cqvcXvC33CpdZfo9wCqQTWXdvN94+RIXt9QaMOGS4nYWCPub wI88pKLTVFfihwEldFFZz+dGtnKKCbeqWBj5LAZymL2rZo0l+b3QT8+IQU2ha58B 4DvdHLyLkCDkzA/pmBJGFD/6W+llOfM9l/KA+fqZAXveZUqdVaBnluTscNSrhcIe jgdzUe/v/4Fjjjvtd3Nms0cyiP8bhYiZujlr0vf6K+VqEnxN34uHvcaJzxvw== 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= 1765623587; x=1765709987; bh=vc3/RSSMjAoWOOplyr7G0owEzxS9ZAB02G2 LXLTREts=; b=EZXleY2hh8n8z9O2ABJZsG6Qqofc5gL9GdaglBRHPKNW+JwxxJG 7NtIfr6kOhob+xRY/NGg39lxEvHNJpBevKgBGhr5Stmix90A30lCd+6XEFqNVz+u TQq0Qx0gzqz/Q9gs1EiRqnTuF8iRCNLJIho2gItrhvRZMGdmJBxftTjaX+WWLwO0 qWGguZEJOkozHj56tUNqUhMdxGaXv5rWV1O4pSo0iB7UrRavOpsA0gx7aUEe/OHT Ew6ASXoAv5BPK3wTieXPK/8qoXXyEOkNWl06rQLW8owB2hHpeXnM6CvY+WCZzIbz /Klz7E0i1tQK/qrEMa3LySKmpWJ+TEvl+Og== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftdekkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufgjfhffkfggtgesghdtreertddtjeenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepteehvedugf ejgfehhfeijeduleekleejgedvkeeuuefhhfegvdevfeetveegteeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Dec 2025 05:59:46 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id ACCD177E690D; Sat, 13 Dec 2025 11:59:30 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH] host/rootfs: add mount-userdata command In-Reply-To: References: <20251212214859.389183-1-hi@alyssa.is> Date: Sat, 13 Dec 2025 11:59:29 +0100 Message-ID: <87tsxu641a.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: LYQUINSR5NYGNFVFLRNR5TN6GLBSA25R X-Message-ID-Hash: LYQUINSR5NYGNFVFLRNR5TN6GLBSA25R 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: devel@spectrum-os.org 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 12/12/25 16:48, Alyssa Ross wrote: >> diff --git a/host/rootfs/image/usr/bin/mount-userdata b/host/rootfs/imag= e/usr/bin/mount-userdata >> new file mode 100755 >> index 00000000..e4a873c0 >> --- /dev/null >> +++ b/host/rootfs/image/usr/bin/mount-userdata >> @@ -0,0 +1,24 @@ >> +#!/bin/execlineb -W >> +# SPDX-License-Identifier: EUPL-1.2+ >> +# SPDX-FileCopyrightText: 2025 Alyssa Ross >> + >> +backtick -D "" uuid { >> + importas -Siu 1 >> + blkid -o value -s UUID $1 > > Missing "--"? Will add. >> +} >> + >> +multisubstitute { >> + importas -Siu 0 >> + importas -Siu 1 >> + importas -Siu uuid >> +} >> + >> +case $uuid { >> + "" { >> + fdmove -c 1 2 >> + printf "%s: '%s' does not have a UUID\n" $0 $1 >> + } >> +} >> + >> +if { mount -m -o nosuid,nodev,noexec,nosymfollow -- $1 /media/${uuid} } >> +printf "%s\n" /media/${uuid} > > Do we really want a mode of 0755? Also, I believe Spectrum should > use noatime. This avoids a burst of unsharing of snapshots due to > atime updates. Will applications be okay with that? What do OpenSUSE/Fedora do? I'm going to go ahead with the default for now but happy to keep discussing. > Should this use =E2=80=98-t btrfs=E2=80=99? I thought Spectrum assumed t= his. Yeah, makes sense. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCaT1HEQAKCRCZddwkt31p FS8CAQDDzJ0sBAzxf2iK5qkTrodqO8ZxwXwmUbxoEy5MIV+ZHAD/S9f3wgXhTK4v 3fLz3ClufA3mJy4oLZorWR+yfB1LEQY= =IQ13 -----END PGP SIGNATURE----- --=-=-=--