serial console

lxnf98mm at gmail.com lxnf98mm at gmail.com
Fri Sep 13 14:06:22 UTC 2013


I have a server set up with Fedora 18, works ok.
I decided to make the root partition encrypted, set that up, works ok.
The machine is remote so I use a serial console to connect, works ok.
Here's the rub, while booting there is a pause to request the passphrase 
to unlock the encrypted fs.
If I have grub configured to display boot messages on tty0 and ttyS0 the 
passphrase can only be entered at tty0.
If I configure grub to only display boot messages on ttyS0 then the 
passphrase can be entered on ttyS0.
How can I display boot messages on tty0 and ttyS0 and enter the passphrase 
on the terminal that I am working on.
This is my /etc/default/grub.

GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,57600n8 ipv6.disable=1 selinux=0 "
GRUB_TERMINAL="console serial"
GRUB_SERIAL_COMMAND="serial --speed=57600 --unit=0 --word=8 --parity=no --stop=1"
GRUB_DISABLE_RECOVERY="true"


Richard



More information about the users mailing list