From 7e4a33bc6bd87988ccd2bb936e374516050565ee Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 30 Oct 2011 20:02:03 -0700 Subject: [PATCH] another attemp at setting guest name --- tools/build_libvirt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_libvirt.sh b/tools/build_libvirt.sh index 385edd1..a90504c 100755 --- a/tools/build_libvirt.sh +++ b/tools/build_libvirt.sh @@ -365,7 +365,7 @@ fi # Change boot params so that we get a console log G_DEV_UUID=`blkid -t LABEL=cloudimg-rootfs -s UUID -o value | head -1` sed -e "s/GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=3/" -i $ROOTFS/etc/default/grub -sed -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0 console=tty0 ds=nocloud ubuntu-pass=pass h=$GUEST_NAME"/' -i $ROOTFS/etc/default/grub +sed -e "s,GRUB_CMDLINE_LINUX_DEFAULT=.*$,GRUB_CMDLINE_LINUX_DEFAULT=\"console=ttyS0 console=tty0 ds=nocloud ubuntu-pass=pass h=$GUEST_NAME\",g" -i $ROOTFS/etc/default/grub sed -e 's/[#]*GRUB_TERMINAL=.*$/GRUB_TERMINAL="serial console"/' -i $ROOTFS/etc/default/grub echo 'GRUB_SERIAL_COMMAND="serial --unit=0"' >>$ROOTFS/etc/default/grub echo 'GRUB_DISABLE_OS_PROBER=true' >>$ROOTFS/etc/default/grub