Page MenuHomeVyOS Platform

getty forces --keep-baud in 1.2.x
Confirmed, NormalPublicBUG

Description

After upgrading to 1.2.x, my IPMI serial consoles are broken because getty passes --keep-baud and the kernel command line does not start with the right bit rate.

In 1.1.8, the getty command was /sbin/getty -L ttyS1 115200 vt100. In 1.2.6, it is /sbin/agetty --keep-baud 115200 ttyS1 vt102. I verified that editing the systemd unit and removing --keep-baud makes getty work again.

It seems to me that if a user has manually configured a bit rate in set system console device blah speed, then --keep-baud should not be on the generated command line? It would also be nice if this console device would be configured in grub.cfg so that it got initialized correctly at boot time...

Details

Difficulty level
Easy (less than an hour)
Version
1.2.6-S1
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

This totally breaks remote console access for me on 1.2.6, FWIW, so I consider it a fairly serious bug.

zsdc changed the task status from Open to Confirmed.Jan 26 2022, 8:28 PM
zsdc triaged this task as Normal priority.
zsdc changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
zsdc changed Why the issue appeared? from Will be filled on close to Issues in third-party code.
zsdc changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
zsdc set Issue type to Bug (incorrect behavior).

We confirmed the problem - some serial consoles continue to work well, some are not initialized properly with the --keep-baud option. For example, this can be reproduced in the SOS console in Equinix Metal.
Originally, the problem comes from a systemd service template.
Since it is not completely clear if the option is necessary in one case or another, it seems that the best solution would be to provide the ability to set/remove it from the CLI, so everyone may configure what works best for his hardware.