3 ms·
In the state of immutable distros that use a modern image format (so not Android), /usr is read only and managed by the system only anyway. imho we should go t
by PlutoIsAPlanet 2y ago
In the state of immutable distros that use a modern image format (so not Android), /usr is read only and managed by the system only anyway.
imho we should go the entire way and move /home to /var/home, so anything other than /etc and /var can be read-only, I already place /var on a separate partition with /var/home on RHEL installs.
- NekkoDroid 2y agofun fact: you can already have almost everything except /var/ and /home/ read-only (there are still some legacy problems in /etc/, namely passwd, shadow, group... that I think userdbd can handle, but are there because of backwards compat). You can add to /etc/ by using systemd-confexts and overlaying files onto there (and systemd-sysext for /usr/). ~~Tho you have to choose the software you run somewhat carefully~~ Lets rather say, the infrastructure is already mostly there for this to be possible. I'd love to have a way to have root really only be a read-only tmpfs that is only used for mount points (specifically /usr/, /var/ and /home/) and symlinks (for example /var/home/ to /home/ if no separate partition is wanted).
- nurple 2y agoImpermanence is an interesting take on this using NixOS https://github.com/nix-community/impermanence https://github.com/nix-community/impermanence