]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: allow to set a new root
authorLaurent Vivier <laurent@vivier.eu>
Fri, 5 Oct 2018 11:09:29 +0000 (13:09 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Nov 2018 10:52:14 +0000 (11:52 +0100)
commitbf8834d4f43e39c4212e1974cee4a76c1a8ba545
tree995b4b8f0e00579251d37348a502142d97b2def0
parentf8ee3af9fabc4369c36fdbd706a17deb246a751c
unshare: allow to set a new root

This patch instroduces two new parameters to set the new
root and the new working directory in this new root.

This allows to combine "unshare chroot" in one command,
and doing like this the /proc filesystem is correctly
mounted in the new root with "--mount-proc".

The new parameters are -R, --root and -w, --wd. The names
are the same as for nsenter, except for "-r" that is already
used by "--map-root-user" and replaced by "-R".

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
bash-completion/unshare
sys-utils/unshare.1
sys-utils/unshare.c