summaryrefslogtreecommitdiff
path: root/examples/unschroot_proc.py
AgeCommit message (Collapse)Author
6 daysprefer getpass.getuser() over os.getlogin()Helmut Grohne
os.getlogin() returns an undesired value in a runuser environment and is not overridable with environment.
2025-07-02unschroot_proc: support additional mountsHelmut Grohne
By using bindfs, we may perform id-mapped bind mounts to share e.g. a user-owned ccache with sbuild.
2025-07-02fix unschroot_proc.py to work from the examples directoryHelmut Grohne
2025-07-01add a second implementation of the unschroot exampleHelmut Grohne
While the first implementation created new namespaces for every invocation in a similar way to sbuild's unshare mode, the second implementation keeps a backround process with persistent user and mount namespace around. This allows using a new tmpfs as backing device and using fuse mounts for underlying filesystems. Communication between the background process and the cli is implemented using the https://github.com/helmutg/asyncvarlink varlink implementation. Chroots can be detected from typical locations or configured via ~/.config/unschroot.ini. Thanks go out for fruitful discussions, feedback and testing to: * Christian Hofstaedler * Christoph Berg * Enrico Zini * Jochen Sprickerhof * Johannes Schauer Marin Rodrigues * Thomas Walz