DPS UUID for /etc/
+ limit inode types on tmpfs
#109
NekkoDroid
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Our thinking was always that instead of splitting /etc/ out of the root fs, you just split everything else out of the root fs, and keep /etc/ as basically only thing (besids some inodes to overmount as mount points). The thing is that /etc/fstab is usually the place where further fs are listed to mount, hence it makes sense to have it on the "anchor" mount, i.e. the root fs, rather than on a secondary mount, because that creates the problem how do you configure where /etc/ is to be found? Hence, I am not convinced this makes sense. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The features
A new UUID for/etc/
partition (Discoverable Partition Specification)tmpfs
(Kernel Feature)I don't know if these features would have some existing limitations in implementing them/or I may have overlook something and they might not address what I think they'd do, so I thought I'd first bring them to discussion.
The motivation
On my quest to make the most image based system that can still be comfortably daily driven, my goal is to only have
/var/
and/home/
and in/etc/fstab
configured mount points read-write, while everything else is read-only by default.Ideally
/etc/
wouldn't even exist and all config is handled by something likesystemd-confext
, but since/var/
s partition UUID depends on the value from/etc/machine-id
some location to persistently store configs is needed before/var/
can even be mounted. This would either need to be the/
partition or a new/etc/
partition. Preferrably this would be a new/etc/
partition, so that changes can be made to configuration without needing to compromise root read-onlyness, or when something at root needs to be mounted (and a dir needs to be made for it) it doesn't temporarly make/etc/
writable (whensystemd-confext
doesn't have anything overlayed yet).With such a
/etc/
partition I though: Is there even a need for an actual root partition anymore when all persistent storage already has its own mount point? My though was that the only thing needed is the root directory structure, compatibility symlinks (/bin
,/lib
, ...) and being able to create mounts forsystemd-homed
and/etc/fstab
, the mounts requiring read-write access to create directories making it impossible to use a pre-created read-only partition without severly restricting where can be mounted. Therefore to my knowledge everything needed would be covered by atmpfs
that limits creating inodes to the type of directories and symlinks, unless I am completely off.The reason to not allow creating files on root is to minimize the possibility of accidentally creating files at volatile locations.
I thought I'd bring it up here before I make individual issues on the respective repos to see if there might be some early feedback on the broad idea/thought processes.
Beta Was this translation helpful? Give feedback.
All reactions