[Lxc-users] lxc-create and debian template

Daniel Lezcano daniel.lezcano at free.fr
Mon Oct 4 12:45:33 UTC 2010


On 10/04/2010 02:10 PM, Helmut Lichtenberg wrote:
> Hi,
> when I run
>
>     lxc-create -f config_template -t debian -n NNN
>
> the config file gets doubled in NNN/config
>
> First, in lxc-create on line 127, there is a copy command:
>
>     cp $lxc_config $lxc_path/$lxc_name/config
>
> and then in /usr/lib64/lxc/templates/lxc-debian, the hardcoded values get
> appended (line 188 on the latest git-commit from 1. Oct.):
>
>     cat<<EOF>>  $path/config
>
> This looks like a minor bug in the design.
>
> I'm using lxc 0.7.2-1 on Debian Squeeze.
>    

Hi Helmut,

actually the configuration file passed to lxc-debian is supposed to be 
concatenate with the default specified in the template.
I admit that can look weird :)







More information about the lxc-users mailing list