[Bug 302880] Re: Add serial console in xml configuration file generated by vm-builder

Sergey Svishchev 302880 at bugs.launchpad.net
Thu Jan 20 13:08:43 UTC 2011


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



More information about the Ubuntu-server-bugs mailing list