enable console logging with grub2

Just a quick note on how to activate serial console logging on grub2 (because I forgot all the time):

  • edit /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0,115200n8 console=tty0"

and voila.