]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-create: pass remaining args to templates
authorSerge E. Hallyn <serge@hallyn.com>
Thu, 23 Jun 2011 22:42:24 +0000 (00:42 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 23 Jun 2011 22:42:24 +0000 (00:42 +0200)
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.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-create.in

index 16011ab34e5a6613d4a3df44388b776cf5a6647c..00e6b21eda9e77f1209ddaa32afa55def52ac907 100644 (file)
@@ -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