mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-24 21:01:40 +00:00
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.
18 lines
386 B
Plaintext
18 lines
386 B
Plaintext
# /etc/inittab
|
|
|
|
::sysinit:/sbin/openrc sysinit
|
|
::sysinit:/sbin/openrc boot
|
|
::wait:/sbin/openrc default
|
|
|
|
# Put a getty on the serial port
|
|
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
|
|
::ctrlaltdel:/sbin/reboot
|
|
|
|
# Stuff to do before rebooting
|
|
::shutdown:/sbin/rc shutdown
|