]> git.ipfire.org Git - thirdparty/lxc.git/commit
Only mount /proc if needed, even without a rootfs
authorDavid Ward <david.ward@ll.mit.edu>
Tue, 23 Jun 2015 14:57:19 +0000 (10:57 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Aug 2015 21:47:46 +0000 (17:47 -0400)
commit9bcf970f4903d4ad97ada8474b08dd880dae3d9e
treed951a50dec98191ef11dc56bd826cfa8be4696ae
parentb8e98f06fce3ffebbac34d8abe6a4cee89a571bd
Only mount /proc if needed, even without a rootfs

Use the same code with and without a rootfs to check if mounting
/proc is necessary before doing so. If mounting it is unsuccessful
and there is no rootfs, continue as before.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c