make lxc-console work non-confusingly by default on touch images
Bug #1303756 reported by
Jani Monoses
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?
Changed in lxc (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | High → Wishlist |
To post a comment you must log in.
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.