From: C.J. Collier Date: Fri, 6 May 2016 23:02:20 +0000 (-0700) Subject: Enable Serial Console X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=eb29008b68095416fa0248725711ad94378fece1;p=ci-management.git 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 --- 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