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