Nested VM refresh
[csit.git] / resources / tools / disk-image-builder / nested / image-patches / 01-serial-console
1 #!/bin/sh
2
3 patch boot/grub/menu.lst <<"_EOF"
4 2c2,4
5 < timeout               10
6 ---
7 > timeout               1
8 > serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
9 > terminal --timeout=0 serial console
10 15c17
11 <       kernel /boot/bzImage rw root=/dev/sda1 rootwait
12 ---
13 >       kernel /boot/bzImage rw root=/dev/sda1 rootwait console=ttyS0,115200n8
14 _EOF
15
16 patch etc/inittab <<"_EOF"
17 27c27,29
18 < console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
19 ---
20 > console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
21 > # ttyS1 to be used by qemu-ga
22 > ttyS2::respawn:/sbin/getty -L ttyS2 0 vt100 # Additional serial
23 _EOF