Re: [PATCH 3/3] host/rootfs: Avoid redundant mounts of /proc and /sys

Demi Marie Obenour
2025-09-18T02:43:04Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1192 bytes --]

On 9/17/25 07:31, Alyssa Ross wrote:
> Demi Marie Obenour <demiobenour@gmail.com> writes:
>
>> The initramfs already mounted both of them.
>>
>> Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
>> ---
>> It's true that this does increase the reliance on an initramfs, but it
>> is also trivial to revert if Spectrum OS ever stops using one. Linux
>> supports creating dm-verity devices via dm-mod.create= and (if needed)
>> dm-mod.waitfor=, so eliminating an initramfs might be possible but is a
>> separate project.
>
> I'd still prefer we don't rely on initramfs behaviour any more than we
> need to — it just makes things more brittle and difficult to understand.

Does the mount we are using blindly mount a second instance
of procfs and sysfs? If so, I'd rather reuse the initramfs
versions. Otherwise, keeping things as-is is fine.

> IIRC I tried using those kernel parameters before, but they weren't
> workable for what we needed. I don't remember the details.

I suspect they are meant for embedded systems with known hardware.
Ideally partition table parsing would be in userspace anyway.
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]