serial-console always uses ttyS1 when using upstart

Bug #1268678 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Medium
Unassigned

Bug Description

The existing serial-console element uses an upstart script like this:

-------
        echo "ttySx probing ttyS1" >/dev/ttyS1 2>/dev/null && console_port=1

-------

The above check will always set console_port=1 when executed as root (the upstart script default I believe) which means /dev/ttyS1 would be the serial console selected regarless of whether it actually exists.

Executing this check as a normal (non-root) user should allow it to work more cleanly.

Another solution would be to just try and run the getty on both ttyS0 and ttyS1 regardless, if that works on Debian/Ubuntu.

Dan Prince (dan-prince)
Changed in diskimage-builder:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Stephane Miller (stephaneeee) wrote :

This appears to have been fixed with the new enable-serial-console element.

Changed in diskimage-builder:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.