Page MenuHomePhabricator

Cannot install from ISO via serial console on ttyS1
On hold, NormalPublic

Description

Netgate make some appliances that would be perfect VyOS routers, except that it's not possible to install on them. The root problem is that, since the only console is on the second serial port, and VyOS doesn't start a getty on that port, there's no way to interact with the installer once you boot up from the ISO.

See thread http://forum.vyos.net/showthread.php?tid=26175

I believe that one change would make this possible: Add a line to the installer's inittab that starts a getty on ttyS1 (in addition to the one on ttyS0).

Another thing that would help a bit would be to add a hint to the grub menus suggesting booting with 'live-console console=ttyS1,115200n8' on these boxes, consistent with the hints for some other hardware.

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0

Event Timeline

gadams created this task.Aug 6 2016, 5:52 AM
syncer triaged this task as Normal priority.Aug 6 2016, 10:16 AM
syncer added a project: VyOS 1.1.x (1.1.8).
syncer added subscribers: mickvav, afics, EwaldvanGeffen and 5 others.

@UnicronNL @EwaldvanGeffen @dmbaturin @afics @mickvav
How would we treat that all devices?
@dmbaturin proposed to build per device images with customizations required
As @UnicronNL already doing that for ClearFog we just need to agree common way maybe

gadams added a comment.Sep 8 2016, 4:52 AM

It should be safe to start a getty on ttyS1 (in addition to the one on ttyS0) for all devices, shouldn't it? Even on devices that don't have a ttyS1 (or even a ttyS0), that shouldn't cause any failures.

gadams added a comment.Oct 7 2016, 7:21 AM

Recent dev builds on the current (lithium) branch don't need to be told which port is the console; systemd is able to figure it out, and spawns the correct getty processes.

I haven't tried re-running the installer from a recent ISO images, but it's possible that this now works. (Modulo the related problem described in T169.)

I'll update this bug when I get a chance to test it.

syncer edited subscribers, added: VyOS 1.2 Crux; removed: VyOS 1.1.x (1.1.8), VyOS 1.1.x.
pasik added a subscriber: pasik.Oct 1 2018, 9:55 AM
syncer changed the task status from Open to On hold.Oct 13 2018, 10:26 AM
syncer edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc4); removed VyOS 1.2 Crux.

requires testing with latest rolling

dmbaturin set Version to 1.2.0.