From: Serge E. Hallyn Date: Thu, 23 Jun 2011 22:42:24 +0000 (+0200) Subject: lxc-create: pass remaining args to templates X-Git-Tag: lxc-0.7.5~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b722bed2da417532bbc4a12cb36a32ba7bbac783;p=thirdparty%2Flxc.git lxc-create: pass remaining args to templates 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 Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in index 16011ab34..00e6b21ed 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