Based on a true story
https://slrpnk.net/post/12047488
What distro?
On Fedora Atomic Desktops:
If you deleted /etc then you can copy it from /usr/etc
Your fstab, shadow, crypttab, gpasswd and quite some other files are gone though, which is problematic.
gitlab.com/fedora/ostree/sig/-/issues/28
Android and other established immutable Operating systems have a reset capability, that can be implemented in Fedora Atomic Desktops. This issue can act as a meta-issuetracker...