[lxc-devel] [PATCH] templates: abort if name is not specified

Stéphane Graber stgraber at ubuntu.com
Mon Apr 1 13:54:57 UTC 2013


On 04/01/2013 12:41 AM, Ryota Ozaki wrote:
> Hi Serge,
> 
> On Mon, Apr 1, 2013 at 12:32 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
>> Quoting Ryota Ozaki (ozaki.ryota at gmail.com):
>>> Most scripts don't check if required parameter 'name' is
>>> specified and proceed without it, which results in using an
>>> unexpected directory /var/lib/lxc/ while we expect
>>> to use /var/lib/lxc/NAME/.
>>
>> ISTM that check is present in lxc-create, so it shouldn't need to be
>> specified in the templates.
> 
> Oh I see. So we shouldn't use the template scripts directly.

Correct, template scripts are meant to be used as hooks for lxc-create
or the create() API function, not to be called directly by the user.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130401/2c672fd3/attachment.pgp>


More information about the lxc-devel mailing list