[Lxc-users] lxc-create and debian template

Helmut Lichtenberg heli at tzv.fal.de
Mon Oct 4 12:10:48 UTC 2010


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.

Ciao
Helmut

-- 
-------------------------------------------------------------------------
Helmut Lichtenberg  <Helmut.Lichtenberg at fli.bund.de>  Tel.: 05034/871-128
Institut für Nutztiergenetik (FLI)         31535 Neustadt         Germany
-------------------------------------------------------------------------




More information about the lxc-users mailing list