Page MenuHomePhabricator

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

Description

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'
commit

set system console device ttyS0 speed '115200'
commit

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0-rc5
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:
https://github.com/vyos/vyatta-cfg/blob/current/scripts/init/vyos-router#L209

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.Mon, Nov 12, 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.Mon, Nov 19, 8:59 PM

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.Wed, Nov 28, 11:54 PM