[Fusionforge-commits] r13076 - trunk/tests/lxc

Christian Bayle cbayle at fusionforge.org
Mon Apr 11 21:34:55 CEST 2011


Author: cbayle
Date: 2011-04-11 21:34:54 +0200 (Mon, 11 Apr 2011)
New Revision: 13076

Modified:
   trunk/tests/lxc/lxc-centos5.postinst
Log:
dhclient send hostname 


Modified: trunk/tests/lxc/lxc-centos5.postinst
===================================================================
--- trunk/tests/lxc/lxc-centos5.postinst	2011-04-11 17:05:24 UTC (rev 13075)
+++ trunk/tests/lxc/lxc-centos5.postinst	2011-04-11 19:34:54 UTC (rev 13076)
@@ -57,6 +57,14 @@
 	else
 		exit 3
 	fi
+	# When domain is not local, avahi completed by send hostname
+	hostnamebase=`echo $hostname | cut -d. -f1`
+	if [ "$hostnamebase.local" != "$hostname" ]
+	then
+		cat <<EOF > $rootfs/etc/dhclient.conf
+send host-name "$hostnamebase";
+EOF
+	fi
 fi
 }
 




More information about the Fusionforge-commits mailing list