This way I can do

        lxc-create -t ubuntu -f /etc/lxc.conf -n u1 -- -x

and have -x passed to the template

Signed-off-by: Serge Hallyn <serge.hal...@ubuntu.com>
---
 src/lxc/lxc-create.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index 16011ab..00e6b21 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -162,7 +162,7 @@ if [ ! -z $lxc_template ]; then
        read dummy
     fi
 
-    ${templatedir}/lxc-$lxc_template --path=$lxc_path/$lxc_name 
--name=$lxc_name
+    ${templatedir}/lxc-$lxc_template --path=$lxc_path/$lxc_name 
--name=$lxc_name $*
     if [ $? -ne 0 ]; then
        echo "failed to execute template '$lxc_template'"
        ${bindir}/lxc-destroy -n $lxc_name
-- 
1.7.4.1


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to