[Fusionforge-commits] r10986 - trunk/tests/openvz
Christian Bayle
cbayle at libremir.placard.fr.eu.org
Thu Oct 14 16:28:21 CEST 2010
Author: cbayle
Date: 2010-10-14 16:28:21 +0200 (Thu, 14 Oct 2010)
New Revision: 10986
Modified:
trunk/tests/openvz/Makefile
Log:
Force hostname to be debian6.local
Modified: trunk/tests/openvz/Makefile
===================================================================
--- trunk/tests/openvz/Makefile 2010-10-14 12:53:32 UTC (rev 10985)
+++ trunk/tests/openvz/Makefile 2010-10-14 14:28:21 UTC (rev 10986)
@@ -54,6 +54,9 @@
#ln -sf /usr/share/zoneinfo/Europe/Paris $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/localtime
# Remove hostname
[ ! -f $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hostname ] || rm $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hostname
+ grep -q debian6.local $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hosts || \
+ sed -i -e 's/localhost/debian6.local localhost/' $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hosts
+ echo "debian6.local" > $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hostname
#
[ -c $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/dev/ptmx ] || chroot $(VZPRIVATEDIR)/$(VEIDDEBTEMP) /bin/mknod /dev/ptmx c 5 2
mkdir $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/root/.ssh
@@ -200,7 +203,7 @@
createdeb: beroot cleandeb
$(VZCTL) create $(VEIDDEB) --private $(VZPRIVATEDIR)/$(VEIDDEB) --ostemplate debian-$(DEBVERS)-$(ARCH)-minimal
- make finalizedeb
+ #make finalizedeb
createcentos: beroot cleancentos
$(VZCTL) create $(VEIDCEN) --private $(VZPRIVATEDIR)/$(VEIDCEN) --ostemplate centos-$(CENTVERS)-$(ARCH)-minimal
More information about the Fusionforge-commits
mailing list