Hacker News new | ask | show | jobs
by XorNot 1482 days ago
You could get something like this using a Bubblewrap script. I have one which marks everything but the current directory read only and drops me into a shell in that container.

So a similar idea would be to overlay mount your system for that container so you can edit, and then on exit the changes vanish. Might try this actually :)

https://github.com/containers/bubblewrap