debian builds on warhol
[infrastructure.git] / scripts / create-vm-debian.sh
index e947405..33eebc2 100755 (executable)
@@ -53,8 +53,8 @@ ip=$(host $fqdn | grep 'has address' | awk '{print $4}')
 #git pull
 #cd -
 
-# single_ip needs to be turned off, vtest-init-vserver now takes care of that
-#command="$BUILD/vtest-init-vserver.sh -p $PERSO -f $DISTRO $HOSTNAME none -- --interface eth0:$ip --hostname $fqdn"
+# single_ip needs to be turned off, vtest-initvm now takes care of that
+#command="$BUILD/vtest-initvm.sh -p $PERSO -f $DISTRO $HOSTNAME none -- --interface eth0:$ip --hostname $fqdn"
 
 case $PERSO in
     linux32) arch=i386;;
@@ -65,7 +65,7 @@ case $DISTRO in
     squeeze|wheezy) DEBMIRROR=http://ftp2.fr.debian.org/debian/ ;;
 # from the vserver man page DEBMIRROR=http://us.archive.ubuntu.com/ubuntu/ ;;
     oneiric|precise|quantal) DEBMIRROR=http://mir1.ovh.net/ubuntu/ubuntu/ ;;
-    *) echo unknown DISTRO; exit 1;;
+    *) echo unknown distro $DISTRO; exit 1;;
 esac
 
 command="$PERSO vserver ${HOSTNAME} build -m debootstrap --interface eth0:${ip}/21 --hostname ${fqdn} -- -d ${DISTRO} -m ${DEBMIRROR} -- --verbose --arch=${arch} "