]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/confile.c
pivot_root: switch to a new mechanism (v2)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 20 Sep 2014 03:15:44 +0000 (03:15 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 22 Sep 2014 21:27:20 +0000 (17:27 -0400)
commit2d489f9e87fa0cccd8a1762680a43eeff2fe1b6e
tree06845e08f91075d4d676f81230686f07e523adb1
parent01db0197519289988a81ea71a2e99fb3fd24e592
pivot_root: switch to a new mechanism (v2)

This idea came from Andy Lutomirski.  Instead of using a
temporary directory for the pivot_root put-old, use "." both
for new-root and old-root.  Then fchdir into the old root
temporarily in order to unmount the old-root, and finally
chdir back into our '/'.

Drop lxc.pivotdir from the lxc.container.conf manpage.

Warn when we see a lxc.pivotdir entry (but keep it in the
lxc.conf for now).

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
doc/lxc.container.conf.sgml.in
src/lxc/conf.c
src/lxc/confile.c