[Lxc-users] lxc-start leaves temporary pivot dir behind

Daniel Lezcano dlezcano at fr.ibm.com
Thu May 6 09:40:10 UTC 2010


Ferenc Wagner wrote:
> Daniel Lezcano <daniel.lezcano at 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 :)




More information about the lxc-users mailing list