diff options
author | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-05-06 16:02:20 -0700 |
---|---|---|
committer | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-05-12 20:08:03 +0000 |
commit | eb29008b68095416fa0248725711ad94378fece1 (patch) | |
tree | 8479cee1df72973906ce47332121a869b3c2e58d /vagrant/lib | |
parent | 57562b3160a724f5bf73a4ffab75f27bab568d3b (diff) |
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 <cjcollier@linuxfoundation.org>
Diffstat (limited to 'vagrant/lib')
-rw-r--r-- | vagrant/lib/bootstrap-functions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 <<EOF>> /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 |