]> code.ossystems Code Review - openembedded-core.git/commitdiff
mkefidisk.sh: add boot log on console
authorTrevor Woerner <twoerner@gmail.com>
Sat, 28 Nov 2015 14:29:51 +0000 (09:29 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jan 2016 13:40:06 +0000 (13:40 +0000)
Hooking up a serial console is a "developer mode", the chances are pretty good
developers are interested in watching the kernel boot log on the console so
they can spot any problems or diagnose any failed boots (e.g. can't find root
fs).

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/mkefidisk.sh

index 1c11d1a6b6857f2e46aa8a2e4abc31330429eddf..333284ff5043e9acc5628643da8c5c3997b6479e 100755 (executable)
@@ -402,7 +402,7 @@ if [ -e "$GRUB_CFG" ]; then
        sed -i "s/ LABEL=[^ ]*/ /" $GRUB_CFG
 
        sed -i "s@ root=[^ ]*@ @" $GRUB_CFG
-       sed -i "s@vmlinuz @vmlinuz root=$TARGET_ROOTFS ro rootwait quiet @" $GRUB_CFG
+       sed -i "s@vmlinuz @vmlinuz root=$TARGET_ROOTFS ro rootwait console=ttyS0 console=tty0 @" $GRUB_CFG
 fi
 
 # Look for a gummiboot installation
@@ -419,7 +419,7 @@ if [ -d "$GUMMI_ENTRIES" ]; then
 
        sed -i "/initrd /d" $GUMMI_CFG
        sed -i "s@ root=[^ ]*@ @" $GUMMI_CFG
-       sed -i "s@options *LABEL=boot @options LABEL=Boot root=$TARGET_ROOTFS ro rootwait quiet @" $GUMMI_CFG
+       sed -i "s@options *LABEL=boot @options LABEL=Boot root=$TARGET_ROOTFS ro rootwait console=ttyS0 console=tty0 @" $GUMMI_CFG
 fi
 
 # Ensure we have at least one EFI bootloader configured