Page MenuHomePhabricator

Console device speed has no effect on GRUB configuration
Closed, ResolvedPublicBUG


I was using 1.1.8 with the serial console device speed set to 115200 and it worked fine. After upgrading to 1.2.0-rc5 and applying the existing config through the 'add system image' process 115200 only worked through grub, but after that it used 9600. The correct config line was in the config "set system console device ttyS0 speed '115200'". However, I had to set the speed to 9600 and commit and then set it to 115200 and commit to get it to work with 115200 all the way to login and beyond. I saved and rebooted between each change so I'm not sure if that was required, but I imagine that the commit action cleaned it up.

set system console device ttyS0 speed '9600'

set system console device ttyS0 speed '115200'


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
syncer assigned this task to UnicronNL.Nov 6 2018, 3:39 PM
syncer triaged this task as Normal priority.
UnicronNL added a comment.EditedNov 9 2018, 8:35 AM

Will mod the script to update rate on the fly.
vyos@vyos:~$ stty -F /dev/ttyS0 115200 cstopb

we should mount the filesystem more early:

Otherwise the baud rate only gets updated when you commit but not on upgrade.
(checks for /boot/grub/grub.cfg, if not exists it does not get updated)
commits get done before mounting /boot so on commit /boot/grub/grub.cfg never exists.

dmbaturin changed the task status from Open to In progress.Nov 12 2018, 4:09 PM
dmbaturin renamed this task from Console Device Speed not Honored after Grub to Console device speed has no effect on GRUB configuration.Nov 19 2018, 8:59 PM
pasik added a subscriber: pasik.Nov 20 2018, 8:21 AM

I've verified that it writes the grub.cfg correctly now.

I'm not sure if any adjustments will be needed for UEFI machines.

dmbaturin closed this task as Resolved.Nov 28 2018, 11:54 PM