Browse code

can't figure out cloudinit

Jesse Andrews authored on 2011/10/31 12:44:26
Showing 1 changed files
... ...
@@ -356,6 +356,7 @@ 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
359 360
 
360 361
 # We need the hostname to resolve for rabbit to launch
361 362
 if ! grep -q $GUEST_NAME $ROOTFS/etc/hosts; then
... ...
@@ -365,7 +366,7 @@ fi
365 365
 # Change boot params so that we get a console log
366 366
 G_DEV_UUID=`blkid -t LABEL=cloudimg-rootfs -s UUID -o value | head -1`
367 367
 sed -e "s/GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=3/" -i $ROOTFS/etc/default/grub
368
-sed -e "s,GRUB_CMDLINE_LINUX_DEFAULT=.*$,GRUB_CMDLINE_LINUX_DEFAULT=\"console=ttyS0 console=tty0 ds=nocloud-net;h=$GUEST_NAME ubuntu-pass=pass\",g" -i $ROOTFS/etc/default/grub
368
+sed -e "s,GRUB_CMDLINE_LINUX_DEFAULT=.*$,GRUB_CMDLINE_LINUX_DEFAULT=\"console=ttyS0 console=tty0 ds=nocloud ubuntu-pass=pass\",g" -i $ROOTFS/etc/default/grub
369 369
 sed -e 's/[#]*GRUB_TERMINAL=.*$/GRUB_TERMINAL="serial console"/' -i $ROOTFS/etc/default/grub
370 370
 echo 'GRUB_SERIAL_COMMAND="serial --unit=0"' >>$ROOTFS/etc/default/grub
371 371
 echo 'GRUB_DISABLE_OS_PROBER=true' >>$ROOTFS/etc/default/grub