]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_init: don't mount filesystems 2194/head
authorSerge Hallyn <shallyn@cisco.com>
Tue, 27 Feb 2018 18:05:30 +0000 (12:05 -0600)
committerSerge Hallyn <shallyn@cisco.com>
Tue, 27 Feb 2018 20:50:48 +0000 (14:50 -0600)
commit0011e0975c229e8a37aeaf3e21ebe4afa6201628
tree43ba10b273f46582398de3306a14e3248e114869
parent9e49a491de31bda9a5d1865657c2b4b8a06c5bcd
lxc_init: don't mount filesystems

We have an extensive set of container config options to do this
for us, and doing this unconditionally breaks several use cases.
For instance, if we want to bind mount a /dev/shm using the
container configuration, then lxc-execute, then lxc-init will
rudely unmount the /dev/shm and remount it as a private tmpfs.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
src/lxc/cmd/lxc_init.c
src/lxc/initutils.c