Commit 98a02fae by Daniel Baumann Committed by Daniel Lezcano

Simplify information message

Keeping creation of new containers without previously existing configuration non-interactive and trimm the warning message. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 814463cf
...@@ -266,29 +266,10 @@ if [ ! -z $lxc_template ]; then ...@@ -266,29 +266,10 @@ if [ ! -z $lxc_template ]; then
fi fi
if [ -z "$lxc_config" ]; then if [ -z "$lxc_config" ]; then
echo echo "Note: Usually the template option is called with a configuration"
echo "Warning:"
echo "-------"
echo "Usually the template option is called with a configuration"
echo "file option too, mostly to configure the network." echo "file option too, mostly to configure the network."
echo "eg. lxc-create -n foo -f lxc.conf -t debian"
echo "The configuration file is often:"
echo
echo "lxc.network.type=macvlan"
echo "lxc.network.link=eth0"
echo "lxc.network.flags=up"
echo
echo "or alternatively:"
echo
echo "lxc.network.type=veth"
echo "lxc.network.link=br0"
echo "lxc.network.flags=up"
echo
echo "For more information look at lxc.conf (5)" echo "For more information look at lxc.conf (5)"
echo echo
echo "At this point, I assume you know what you do."
echo "Press <enter> to continue ..."
read dummy
fi 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 $*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment