[Lxc-users] [PATCH 1/2] lxc-create: pass remaining args to templates
Serge E. Hallyn
serge at hallyn.com
Wed Jun 22 18:16:45 UTC 2011
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 at 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
More information about the lxc-users
mailing list