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>
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