Patchwork [1/5] init-install-testfs: add grub serial line support

mail settings
Submitter Cristian Iorga
Date June 20, 2014, 3:42 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/74173/
State Accepted
Commit 219228805a4d5d822894c8f6c2526e1b9a8609ff
Headers show


Cristian Iorga - June 20, 2014, 3:42 p.m.
For automated hardware testing, boot process control
via serial interface is needed. As such, in grub, serial
line support is added upon testmaster image install.

Also add a specific timeout to automatically start
the master image upon start of testing phase.

Tested on multiple hardware targets without issues.

Signed-off-by: Cristian Iorga <>
 meta/recipes-core/initrdscripts/files/ | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/meta/recipes-core/initrdscripts/files/ b/meta/recipes-core/initrdscripts/files/
index 116a6b7..6faa233 100644
--- a/meta/recipes-core/initrdscripts/files/
+++ b/meta/recipes-core/initrdscripts/files/
@@ -172,6 +172,11 @@  if [ -f /etc/grub.d/00_header ] ; then
     mkdir -p $(dirname $GRUBCFG)
     cat >$GRUBCFG <<_EOF 
+serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
+terminal_input --append  serial
+terminal_output --append serial
+set timeout_style=hidden
+set timeout=5
 menuentry "Linux" {
     set root=(hd0,1)
     linux /vmlinuz root=$rootfs $rootwait rw $5 $3 $4 quiet