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>
echo "---> Debian type system detected"
export DEBIAN_FRONTEND=noninteractive
+ deb_enable_serial_console
deb_aptconf_batchconf
deb_sync_minor
deb_correct_shell
#!/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