serial-console always uses ttyS1 when using upstart
Bug #1268678 reported by
Dan Prince
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.
Changed in diskimage-builder: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
This appears to have been fixed with the new enable- serial- console element.