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

Daniel Lezcano daniel.lezcano at free.fr
Thu May 13 16:19:38 UTC 2010


Ferenc Wagner wrote:
> Daniel Lezcano <daniel.lezcano at free.fr> writes:
>
>
>> Ferenc Wagner wrote:
>>
>>
>>> Daniel Lezcano <daniel.lezcano at free.fr> writes:
>>>
>>>
>>>> Ferenc Wagner wrote:
>>>>
>>>>
>>>>> Daniel Lezcano <daniel.lezcano at free.fr> writes:
>>>>>
>>>>>
>>>>>> Ferenc Wagner wrote:
>>>>>>
>>>>>>
>>>>>>> Actually, I'm not sure you can fully solve this.  If rootfs is a
>>>>>>> separate file system, this is only much ado about nothing.  If rootfs
>>>>>>> isn't a separate filesystem, you can't automatically find a good
>>>>>>> place and also clean it up.
>>>>>>>
>>>>>> Maybe a single /tmp/lxc directory may be used as the mount points are
>>>>>> private to the container. So it would be acceptable to have a single
>>>>>> directory for N containers, no ?
>>>>>>
>>>>> Then why not /usr/lib/lxc/pivotdir or something like that?  Such a
>>>>> directory could belong to the lxc package and not clutter up /tmp.  As
>>>>> you pointed out, this directory would always be empty in the outer name
>>>>> space, so a single one would suffice.  Thus there would be no need
>>>>> cleaning it up, either.
>>>>>
>>>> Agree. Shall we consider $(prefix)/var/run/lxc ?
>>>>
>>> Hmm, /var/run/lxc is inconvenient, because it disappears on each reboot
>>> if /var/run is on tmpfs.  This isn't variable data either, that's why I
>>> recommended /usr above.
>>>
>> Good point. I will change that to /usr/$(libdir)/lxc and let the
>> distro maintainer to choose a better place if he wants with the
>> configure option.
>>
>
> I'm not sure what libdir is, doesn't this conflict with lxc-init?
> That's in the /usr/lib/lxc directory, at least in Debian.  I'd vote for
> /usr/lib/lxc/oldroot in this setting.
>
$(libdir) is the variable defined by configure --libdir=<path>
Usually it is /usr/lib on 32bits or /usr/lib64 on 64bits.

lxc-init is located in $(libexecdir), that is /usr/libexec or /libexec 
depending of the configure setting.









More information about the lxc-users mailing list