Ferenc Wagner <wferi@niif.hu> writes: > Daniel Lezcano <dlezcano@fr.ibm.com> writes: > >> Ferenc Wagner wrote: >> >>> Daniel Lezcano <daniel.lezcano@free.fr> writes: > >>>> Ferenc Wagner wrote: > >>>> > >>>>> While playing with lxc-start, I noticed that /tmp is infested by > >>>>> empty lxc-r* directories: [...] Ok, this name comes from lxc-rootfs > >>>>> in conf.c:setup_rootfs. After setup_rootfs_pivot_root returns, the > >>>>> original /tmp is not available anymore, so rmdir(tmpname) at the > >>>>> bottom of setup_rootfs can't achieve much. Why is this temporary > >>>>> name needed anyway? Is pivoting impossible without it? > >>>> > >>>> That was put in place with chroot, before pivot_root, so the distro's > >>>> scripts can remount their '/' without failing. > >>>> > >>>> Now we have pivot_root, I suppose we can change that to something cleaner... >>> Like simply nuking it? Shall I send a patch? >> >> Sure, if we can kill it, I will be glad to take your patch :) > > I can't see any reason why lxc-start couldn't do without that temporary > recursive bind mount of the original root. If neither do you, I'll > patch it out and see if it still flies. For my purposes the patch below works fine. I only run applications, though, not full systems, so wider testing is definitely needed. Thanks, Feri. >From 98b24c13f809f18ab8969fb4d84defe6f812b25c Mon Sep 17 00:00:00 2001 Date: Thu, 6 May 2010 14:47:39 +0200 That was put in place before lxc-start started using pivot_root, so the distro scripts can remount / without problems. Signed-off-by:Ferenc Wagner <wferi@niif.hu> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| .cvsignore | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| af_unix.c | Loading commit data... | |
| af_unix.h | Loading commit data... | |
| arguments.c | Loading commit data... | |
| arguments.h | Loading commit data... | |
| cgroup.c | Loading commit data... | |
| cgroup.h | Loading commit data... | |
| checkpoint.c | Loading commit data... | |
| commands.c | Loading commit data... | |
| commands.h | Loading commit data... | |
| conf.c | Loading commit data... | |
| conf.h | Loading commit data... | |
| confile.c | Loading commit data... | |
| confile.h | Loading commit data... | |
| console.c | Loading commit data... | |
| console.h | Loading commit data... | |
| error.c | Loading commit data... | |
| error.h | Loading commit data... | |
| freezer.c | Loading commit data... | |
| genl.c | Loading commit data... | |
| genl.h | Loading commit data... | |
| list.c | Loading commit data... | |
| list.h | Loading commit data... | |
| log.c | Loading commit data... | |
| log.h | Loading commit data... | |
| lxc-checkconfig.in | Loading commit data... | |
| lxc-create.in | Loading commit data... | |
| lxc-destroy.in | Loading commit data... | |
| lxc-ls.in | Loading commit data... | |
| lxc-netstat.in | Loading commit data... | |
| lxc-ps.in | Loading commit data... | |
| lxc-setcap.in | Loading commit data... | |
| lxc-version.in | Loading commit data... | |
| lxc.h | Loading commit data... | |
| lxc_attach.c | Loading commit data... | |
| lxc_cgroup.c | Loading commit data... | |
| lxc_checkpoint.c | Loading commit data... | |
| lxc_console.c | Loading commit data... | |
| lxc_execute.c | Loading commit data... | |
| lxc_freeze.c | Loading commit data... | |
| lxc_info.c | Loading commit data... | |
| lxc_init.c | Loading commit data... | |
| lxc_kill.c | Loading commit data... | |
| lxc_monitor.c | Loading commit data... | |
| lxc_restart.c | Loading commit data... | |
| lxc_start.c | Loading commit data... | |
| lxc_stop.c | Loading commit data... | |
| lxc_unfreeze.c | Loading commit data... | |
| lxc_unshare.c | Loading commit data... | |
| lxc_utils.h | Loading commit data... | |
| lxc_wait.c | Loading commit data... | |
| mainloop.c | Loading commit data... | |
| mainloop.h | Loading commit data... | |
| monitor.c | Loading commit data... | |
| monitor.h | Loading commit data... | |
| namespace.c | Loading commit data... | |
| namespace.h | Loading commit data... | |
| network.c | Loading commit data... | |
| network.h | Loading commit data... | |
| nl.c | Loading commit data... | |
| nl.h | Loading commit data... | |
| parse.c | Loading commit data... | |
| parse.h | Loading commit data... | |
| restart.c | Loading commit data... | |
| rtnl.c | Loading commit data... | |
| rtnl.h | Loading commit data... | |
| start.c | Loading commit data... | |
| start.h | Loading commit data... | |
| state.c | Loading commit data... | |
| state.h | Loading commit data... | |
| stop.c | Loading commit data... | |
| utils.c | Loading commit data... | |
| utils.h | Loading commit data... | |
| utmp.c | Loading commit data... | |
| utmp.h | Loading commit data... | |
| version.c | Loading commit data... |