Sample Header Ad - 728x90

Simulate chroot with unshare

16 votes
3 answers
9684 views
I am trying to write a bootstrapper for a minimal, from-source linux distribution. I would like to build in a chroot-like environment. This should simplify packaging. I do not care about security at this point. The bootstrapper should not require any non-standard third-party commands. It would be great if there is no need to be root, either. This is why fakechroot(1) fakeroot(1) chroot(1) is not exactly what I am looking for. Is it possible to fake / using unshare(1) and /bin/sh?
Asked by Rooties (161 rep)
Feb 25, 2013, 07:45 PM
Last activity: Mar 22, 2022, 12:22 AM