Setting baud rate / console device as part of 'install image'


#1

Hi,

I have been using the Live CD ISO and running it within a virtual machine (VirtualBox) on my Mac laptop and using that to install VyOS on removable media (Compact Flash or SD card) in order to boot a Single Board Computer.

It would be great if it was possible to customise the Grub and initial VyOS configuration during the install process. At the moment the installer (/opt/vyatta/sbin/vyatta-grub-setup) is clever enough to customise the Grub configuration based on the tty that the installer is running in. But it doesn’t know that my target device will be a serial console. It would be great to be able to customise this without having to manual edit the grub.cfg and VyOS config file.

The APU2 has a fixed console baud rate of 115200 - unfortunately it is not possible to change it to 9600.

Happy to try writing a patch for this myself, if you think it is a reasonable idea.

nick.


#2

Pass it via $GRUB_OPTIONS, I have vyos running on an apu2 for around 1 yr now.

Version: VyOS 1.2.0-rolling+201901261827
Built by: autobuild@vyos.net
Built on: Sat 26 Jan 2019 18:27 UTC
Build ID: ddcbe1bb-f380-4b10-878c-d150f1daa706

Architecture: x86_64
Boot via: installed image
System type: bare metal

Hardware vendor: PC Engines
Hardware model: APU2
Hardware S/N: Unknown
Hardware UUID: Unknown