From ddcc36d445c1dafecd6e752554e7112df8b1a9f6 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 30 Oct 2011 22:41:23 -0700 Subject: [PATCH] try to overwrite the overwrite --- tools/build_libvirt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build_libvirt.sh b/tools/build_libvirt.sh index 91b15ab..0564584 100755 --- a/tools/build_libvirt.sh +++ b/tools/build_libvirt.sh @@ -335,6 +335,9 @@ if [ ! -e /root/firstlaunch ]; then reboot -f exit 0 fi +# cloud-init overwrites the hostname with ubuntuhost +echo $GUEST_NAME > /etc/hostname +hostname $GUEST_NAME su -c "$DEST/run.sh" stack EOF chmod +x $RC_LOCAL @@ -356,7 +359,6 @@ sudo sed -e "s/^hiddenmenu//g" -i $ROOTFS/boot/grub/menu.lst # Set the hostname echo $GUEST_NAME > $ROOTFS/etc/hostname -echo $GUEST_NAME > $ROOTFS/etc/hostname1 # We need the hostname to resolve for rabbit to launch if ! grep -q $GUEST_NAME $ROOTFS/etc/hosts; then