I've been using execscript, like this:

target=$1

(printf "serial --unit=0 --speed=115200 --word=8 --parity=no
--stop=1\nterminal --dumb serial\n\n"; cat $target/boot/grub/menu.lst) >
$target/tmp/menu.lst && mv $target/tmp/menu.lst
$target/boot/grub/menu.lst

chroot $target sed -i -e '/^# kopt=/s/^\(.*\)$/\1 console=ttyS0,115200n8/; /^# 
defoptions=/s/=.*$/=/' \
  /boot/grub/menu.lst
chroot $target update-grub

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/302880

Title:
  Add serial console in xml configuration file generated by vm-builder

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to