make lxc-console work non-confusingly by default on touch images

Bug #1303756 reported by Jani Monoses
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Won't Fix
Wishlist
Stéphane Graber

Bug Description

I learned after a few failed tries previously that lxc-console works on the touch images if it uses tty0 and if a return is pressed after the greeting. This is not easy to discover. Would there be a way to set good defaults here without affecting non-touch uses of lxc-console?

Jani Monoses (jani)
Changed in lxc (Ubuntu):
assignee: nobody → Stéphane Graber (stgraber)
Oliver Grawert (ogra)
Changed in lxc (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Graber (stgraber) wrote :

So to repeat what I've said on IRC.

There seems to be two ways to deal with that, the ideal one I believe would be to have lxc-console attach to tty0 when the container is backgrounded and lxc-start isn't itself attached to it, however figuring this out isn't currently possible from an API client and it'd probably require a break of both the API and the internal communication protocol so we can store and query that extra state.

Alternatively, we could have lxc-console attach to tty0 when lxc.tty = 0 which I believe would cover the Ubuntu Touch use case and shouldn't require any change to the API or internal protocol, it'd just be a matter of having lxc-console query lxc.tty and attach to 0 if lxc.tty == 0.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1303756] Re: make lxc-console work non-confusingly by default on touch images

> Alternatively, we could have lxc-console attach to tty0 when lxc.tty = 0

That seems reasonable.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Has this been worked around in the touch images, or is this still needed?

Revision history for this message
Jani Monoses (jani) wrote :

nothing has changed on touch AFAIK.

Changed in lxc (Ubuntu):
importance: Undecided → High
Changed in lxc (Ubuntu):
status: Confirmed → Triaged
importance: High → Wishlist
Revision history for this message
Stéphane Graber (stgraber) wrote :

Ubuntu Touch hasn't been a thing for a few years and UBPorts hasn't really been hitting this issue as far as I know.

Changed in lxc (Ubuntu):
status: Triaged → Won't Fix
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.