From eb29008b68095416fa0248725711ad94378fece1 Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Fri, 6 May 2016 16:02:20 -0700 Subject: [PATCH] Enable Serial Console This patch will allow access to the bootloader and kernel boot messages for debugging and maintenance * add function deb_enable_serial_console to bootstrap-functions.sh * call deb_enable_serial_console from bootstrap.sh Change-Id: Ia79881a91ab4d10b1f5ed6deb3a43a7a4d037fa5 Signed-off-by: C.J. Collier --- vagrant/basebuild/bootstrap.sh | 1 + vagrant/lib/bootstrap-functions.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/vagrant/basebuild/bootstrap.sh b/vagrant/basebuild/bootstrap.sh index 016be616e..b3f5426a8 100644 --- a/vagrant/basebuild/bootstrap.sh +++ b/vagrant/basebuild/bootstrap.sh @@ -20,6 +20,7 @@ then echo "---> Debian type system detected" export DEBIAN_FRONTEND=noninteractive + deb_enable_serial_console deb_aptconf_batchconf deb_sync_minor deb_correct_shell diff --git a/vagrant/lib/bootstrap-functions.sh b/vagrant/lib/bootstrap-functions.sh index 80e2f217b..652160e06 100644 --- a/vagrant/lib/bootstrap-functions.sh +++ b/vagrant/lib/bootstrap-functions.sh @@ -1,5 +1,15 @@ #!/bin/bash +deb_enable_serial_console() { +# enable grub and login on serial console + + echo <> /etc/default/grub +GRUB_TERMINAL=serial +GRUB_SERIAL_COMMAND="serial --speed=38400 --unit=0 --word=8 --parity=no --stop=1" +EOF + update-grub +} + deb_probe_modules() { for mod in "$@" do -- 2.16.6