From: Alyssa Ross <hi@alyssa.is>
To: Demi Marie Obenour <demiobenour@gmail.com>
Cc: devel@spectrum-os.org
Subject: Re: [PATCH] host/rootfs: add mount-userdata command
Date: Sat, 13 Dec 2025 11:59:29 +0100 [thread overview]
Message-ID: <87tsxu641a.fsf@alyssa.is> (raw)
In-Reply-To: <c1c55761-9c40-4b4e-9bf2-e667dc8d4db2@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]
Demi Marie Obenour <demiobenour@gmail.com> writes:
> On 12/12/25 16:48, Alyssa Ross wrote:
>> diff --git a/host/rootfs/image/usr/bin/mount-userdata b/host/rootfs/image/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 <hi@alyssa.is>
>> +
>> +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 ‘-t btrfs’? I thought Spectrum assumed this.
Yeah, makes sense.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2025-12-13 10:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-12 21:48 [PATCH] host/rootfs: add mount-userdata command Alyssa Ross
2025-12-12 23:02 ` Demi Marie Obenour
2025-12-13 10:59 ` Alyssa Ross [this message]
2025-12-14 1:35 ` Demi Marie Obenour
2025-12-13 12:31 ` Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tsxu641a.fsf@alyssa.is \
--to=hi@alyssa.is \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).