Need a way to drive GRUB over serial port

Bug #1459755 reported by Loïc Minier on 2015-05-28
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description


currently, our snappy x86 images default to setting up GRUB without serial port; to locally enable this, people are remounting the fs read-write and changing:
- "/mnt/rootfs/etc/default/grub.d/50-system-image.cfg" to have:
console=ttyS1,115200n8 instead of console=ttyS0

- "/mnt/rootfs/etc/grub.d/00_header" to have following after the first instance of the line "cat << EOF":
serial --port=0x2f8 --speed=115200 --word=8 --parity=no --stop=1

I'm not sure which way we would support this in snappy; perhaps ubuntu-core config?


Michael Vogt (mvo) wrote :

I wonder if we could simply enable this by default? Or is there a (security) risk here?

Loïc Minier (lool) wrote :

I suspect the serial port name might differ (e.g. ttyS0 and ttyS1) and that people might want to disable that if they actually need the serial port for something else.

It kind of feel like a deployment option to me: headless servers where you want to use an existing serial port, but some platforms wont have it; perhaps there's a smart way to detect it though, like "press space now to enable serial console" during grub startup?

Michael Vogt (mvo) on 2015-08-25
Changed in snappy:
status: New → Triaged
importance: Undecided → Medium
Loïc Minier (lool) on 2015-12-07
Changed in snappy:
importance: Medium → High
David Duffey (dduffey) wrote :

I made an onie-installer, and I do a couple of things, I created an "isntaller.conf" that contains serial port settings that are read at the time snappy is laid down onto an ONIE device.

It modifies grub.cfg in system-boot as well as the snap space in system-a, and this seems to persist across reboots and ubuntu-core updates.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers