On Mon, Mar 05, 2012 at 04:55:31PM +0100, Roberto De Ioris wrote: > > > I added the option to recursively bind mount the directory given to the > > --namespace option, which fixed one problem. I hit another though when it > > tried to clean up the tmp mount for pivot_root. It was unmounting all the > > bind > > mounts, so this was worked around by making it a little more picky about > > what > > it unmounted. > > > > I think we need a way to better define bind-mounts in jails (or for the > --unshare option) > > Something like > > uwsgi --unshare mount --bind-mount /foo=/bar --bind-mount /one=/two > --root-mount /jail001/myroot > > could be an enough-generic solution >
Letting people specify a file with fstab entries or add them as multiple config options might be nice too. That would also allow people to handle things other than bind mounts. LXC does something similar, and builds the root file system for you. http://www.linuxcertif.com/man/5/lxc.conf/#MOUNT_POINTS_116h There is an example at the bottom showing how they use it. _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
