What are my options? Is there any Linux distro that uses something like my scheme? Can some distro be modified to work like I want it (Gentoo??) or do I need LFS? Is there any prior art in this area? Like publications on if the scheme is feasible or unfeasible?
Not looking for OS X. :) But OS X-inspired is totally ok.
All
I've provided a list at this Software Recommendations SE answer:
Compliant
Name Version Arch Linux >= 2024.07.01 SUSE Linux Enterprise >= 15.4 Red Hat Enterprise Linux (RHEL) >= 9 Fedora >= 40 Ubuntu >= 24.04 Debian >= 12 (Bookworm) ^Debian_citation openSUSE Tumbleweed Non-Compliant
Name Version GoboLinux <= 017 NixOS <= 24.05 The Android Open Source Project (AOSP) <= 14 ^AOSP_citation
I've duplicated the content because the question asked is more broad - not solely about Linux-based OSes, so I removed the unnecessary kernel column.
Verification Example
The hierarchy of the AOSP filesystem is similar to what you have described, because each package is isolated within /data.
https://developer.android.com/training/data-storage demonstrates this. However, should you want to confirm:
-
Outside the OS:
adbAlternatively, from within AOSP:
shell
-
tree
provides evidence that superuser access is available.