Browse code

try to overwrite the overwrite

Jesse Andrews authored on 2011/10/31 14:41:23
Showing 1 changed files
... ...
@@ -335,6 +335,9 @@ if [ ! -e /root/firstlaunch ]; then
335 335
     reboot -f
336 336
     exit 0
337 337
 fi
338
+# cloud-init overwrites the hostname with ubuntuhost
339
+echo $GUEST_NAME > /etc/hostname
340
+hostname $GUEST_NAME
338 341
 su -c "$DEST/run.sh" stack
339 342
 EOF
340 343
 chmod +x $RC_LOCAL
... ...
@@ -356,7 +359,6 @@ sudo sed -e "s/^hiddenmenu//g" -i $ROOTFS/boot/grub/menu.lst
356 356
 
357 357
 # Set the hostname
358 358
 echo $GUEST_NAME > $ROOTFS/etc/hostname
359
-echo $GUEST_NAME > $ROOTFS/etc/hostname1
360 359
 
361 360
 # We need the hostname to resolve for rabbit to launch
362 361
 if ! grep -q $GUEST_NAME $ROOTFS/etc/hosts; then