This couple of patches merges "unshare chroot" in one command. Parameter names are copied from nsenter. Doing like this the /proc filesystem is correctly mounted in the new root with "--mount-proc". Laurent Vivier (2): unshare: allow to set a new root unshare: allows to set user ID and group ID bash-completion/unshare | 6 ++++- sys-utils/unshare.1 | 13 ++++++++++ sys-utils/unshare.c | 53 +++++++++++++++++++++++++++++++++++++---- 3 files changed, 67 insertions(+), 5 deletions(-) -- 2.17.1