try to overwrite the overwrite

This commit is contained in:
Jesse Andrews 2011-10-30 22:41:23 -07:00
parent 2c5201b461
commit ddcc36d445

View file

@ -335,6 +335,9 @@ if [ ! -e /root/firstlaunch ]; then
reboot -f reboot -f
exit 0 exit 0
fi fi
# cloud-init overwrites the hostname with ubuntuhost
echo $GUEST_NAME > /etc/hostname
hostname $GUEST_NAME
su -c "$DEST/run.sh" stack su -c "$DEST/run.sh" stack
EOF EOF
chmod +x $RC_LOCAL chmod +x $RC_LOCAL
@ -356,7 +359,6 @@ sudo sed -e "s/^hiddenmenu//g" -i $ROOTFS/boot/grub/menu.lst
# Set the hostname # Set the hostname
echo $GUEST_NAME > $ROOTFS/etc/hostname echo $GUEST_NAME > $ROOTFS/etc/hostname
echo $GUEST_NAME > $ROOTFS/etc/hostname1
# We need the hostname to resolve for rabbit to launch # We need the hostname to resolve for rabbit to launch
if ! grep -q $GUEST_NAME $ROOTFS/etc/hosts; then if ! grep -q $GUEST_NAME $ROOTFS/etc/hosts; then