mirror of
git://github.com/lxc/lxc
synced 2025-08-31 06:59:37 +00:00
Simplify information message
Keeping creation of new containers without previously existing configuration non-interactive and trimm the warning message. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
committed by
Daniel Lezcano
parent
814463cf0b
commit
98a02fae03
@@ -266,29 +266,10 @@ if [ ! -z $lxc_template ]; then
|
||||
fi
|
||||
|
||||
if [ -z "$lxc_config" ]; then
|
||||
echo
|
||||
echo "Warning:"
|
||||
echo "-------"
|
||||
echo "Usually the template option is called with a configuration"
|
||||
echo "Note: Usually the template option is called with a configuration"
|
||||
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
|
||||
echo "At this point, I assume you know what you do."
|
||||
echo "Press <enter> to continue ..."
|
||||
read dummy
|
||||
fi
|
||||
|
||||
${templatedir}/lxc-$lxc_template --path=$lxc_path/$lxc_name --name=$lxc_name $*
|
||||
|
Reference in New Issue
Block a user