scripts icon indicating copy to clipboard operation
scripts copied to clipboard

stackit-oem: Add custom grub config to configure `linux_console`

Open RAPSNX opened this issue 2 months ago • 0 comments

stackit-oem: Add custom grub config to configure linux_console

This changes the grub.cfg of the stackit-oem image, in STACKIT it is possible to retrieve logs from the serial-console. (/dev/TTYS0). Many services are logging by default to the system-console (/dev/console). In order to link the serial-console to the system-console, the last parameter of the cmd_line arguments is used.

Basically, this switches the default parameter for the linux_console.

How to use

The resulting image should have the console=ttyS0,115200n8 param as last console= param set. This can be verified by checking the cmd_line:

cat /proc/cmdline

Testing done

  • [x] Build the image from source according to sdk-modifying-flatcar
  • [x] Uploaded the image into openstack and created a server according to stackit-docs
  • [x] Checked that the cmdline has the correct setting

RAPSNX avatar Oct 15 '25 13:10 RAPSNX