-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image-tools: T5910: explicitly set transmission speed of serial console #2806
Conversation
GRUB defaults to 9600 in case of serial console; explicitly set to 115200.
Why not reference the serial console speed from CLI? Looks like now we have two places defining the speed. Updating serial speed on the CLI should also be reflected in the GRUB configuration |
Yes, good point, and in fact this reveals a second bug: config-mode |
(addendum:) A fix for https://vyos.dev/T5923, pending, will correctly update the GRUB settings; the default values in PR above are only for initial install. |
Just because I did this search yesterday when I was seeing if there was some way for me to get the codebase into my head enough to contribute a fix, this search shows 42 hits in the repo. It's significantly more than just two places in the codebase where 115200 is a "magic number"... |
@fghorow yes, but most of those hits are in the example configs that are used in one category of smoketests, and have no instrumental effect. |
Approving this as hotfix, but we should properly resolve the issue as mentioned above with the console speed on the CLI config. |
A fix for the follow-on https://vyos.dev/T5923 should be ready shortly. |
@Mergifyio backport sagitta |
✅ Backports have been created
|
Change Summary
The image-tools install scripts do not explicitly set the serial console speed, resulting in a GRUB default of 9600. In the case of a serial-only installation, this is a confounding, as the live image sets transmission speed to 115200, whereas the resulting installed image does not. Explicitly set for both fresh installs and for compatibility mode when legacy images are subsequently removed.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
How to test
Smoketest result
Checklist: