X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fdisk-image-builder%2Fnested%2Fpatches%2F01-serial-console;fp=resources%2Ftools%2Fdisk-image-builder%2Fnested%2Fpatches%2F01-serial-console;h=99b6f7f3c8a6190b58cf2802a19c76814a22a481;hb=9d378548cc86028c55baf17260d32d0055603b78;hp=0000000000000000000000000000000000000000;hpb=036f36181c177e4c77f22cdbdcb87fb2f94df3bf;p=csit.git diff --git a/resources/tools/disk-image-builder/nested/patches/01-serial-console b/resources/tools/disk-image-builder/nested/patches/01-serial-console new file mode 100755 index 0000000000..99b6f7f3c8 --- /dev/null +++ b/resources/tools/disk-image-builder/nested/patches/01-serial-console @@ -0,0 +1,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 +--- +> kernel /boot/bzImage rw root=/dev/sda1 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