DOMAIN=pl.sophia.inria.fr
-DEFAULT_DISTRO=f20
+DEFAULT_DISTRO=f21
CONFIRM=
function usage () {
message="$@"
- echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] container"
+ echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] [-s] container"
echo " -c : confirm, will show the command and prompt for confirmation "
echo " -f : set distro, default is $DEFAULT_DISTRO"
echo " -i : if specified, image is rsynced into /vservers"
echo " warning: we cannot use an image already in /vservers..."
- echo " -m : memory size in Mb - default is 512"
+ echo " -m : memory size in Mb - default is 2048"
echo " -n : specify hostname if different from container"
echo " -s : do not start VM"
echo " container : used for /vservers/foo as well as the lxc/libvirt name"
}
# using HOSTNAME won't work as this is already set in environment
-while getopts "cf:i:m:n:h" flag; do
+while getopts "cf:i:m:n:sh" flag; do
case $flag in
c) CONFIRM=true ;;
f) DISTRO=$OPTARG ;;