Add support for console on tty1

When running moby under other hypervisors, requiring troubleshooting on
the serial port can be painful.  This change enables console support on
tty1 similar to the way prior boot2docker images worked.
This commit is contained in:
Daniel Hiltgen 2016-06-16 17:11:26 -07:00
parent 2c9c3c4b20
commit 56c6c3a0a9
4 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,4 @@
console console
ttyS0 ttyS0
ttyAMA0 ttyAMA0
tty1

View File

@ -7,6 +7,9 @@
# Put a getty on the serial port # Put a getty on the serial port
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
# Put a getty on the console
tty1::respawn:/sbin/getty 115200 tty1 linux
# Stuff to do for the 3-finger salute # Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot ::ctrlaltdel:/sbin/reboot

View File

@ -2,4 +2,4 @@ DEFAULT linux
LABEL linux LABEL linux
KERNEL /vmlinuz64 KERNEL /vmlinuz64
INITRD /initrd.img INITRD /initrd.img
APPEND earlyprintk=serial console=ttyS0 APPEND earlyprintk=serial console=ttyS0 console=tty0

View File

@ -1753,7 +1753,8 @@ CONFIG_INPUT_EVDEV=y
# #
# Input Device Drivers # Input Device Drivers
# #
# CONFIG_INPUT_KEYBOARD is not set CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set # CONFIG_INPUT_TABLET is not set
@ -1780,7 +1781,7 @@ CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
# #
CONFIG_SERIO=y CONFIG_SERIO=y
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
# CONFIG_SERIO_I8042 is not set CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set # CONFIG_SERIO_CT82C710 is not set
CONFIG_SERIO_PCIPS2=y CONFIG_SERIO_PCIPS2=y
@ -2367,7 +2368,7 @@ CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# #
# HID support # HID support
# #
# CONFIG_HID is not set CONFIG_HID=y
# #
# I2C HID support # I2C HID support