Update breaks graphical system when X/Wayland is on vt[1-6]

Bug #1712356 reported by Iain Lane
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
console-setup (Ubuntu)
Fix Released
Undecided
Mathieu Trudel-Lapierre

Bug Description

The update of console-setup in artful-release that just happened triggered a bug-

the postinst calls `setupcon --force' if the foreground console is tty1-6. This is not safe any more given that gnome-shell runs on 2.

We can update this check to ask logind if the foreground console corresponds to a tty session, and only do setupcon --force if it does.

Tags: patch
Revision history for this message
Iain Lane (laney) wrote :
tags: added: patch
Iain Lane (laney)
Changed in console-setup (Ubuntu):
assignee: nobody → Mathieu Trudel-Lapierre (cyphermox)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is this a serious problem? What's not safe?

We used to run Mir servers on arbitrary VTs that already had consoles on them and never had a problem. You get a GUI while the server is running and it returns to a tty upon exit.

Revision history for this message
Iain Lane (laney) wrote :

If you want to fix it, and it's possible to fix it, and setupcon --force didn't break things under Mir, feel free.

In the meantime, we'll avoid doing the thing that breaks systems.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I guess the wrong bug number is referenced in the debdiff.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Oops, I didn't notice the bug number was wrong in the debdiff; we'll just have to close this manually.

console-setup 1.166ubuntu1 was uploaded and built; please test to make sure it really does resolve the issue correctly (it seemed to here).

https://launchpad.net/ubuntu/+source/console-setup/1.166ubuntu1/+build/13286956

Changed in console-setup (Ubuntu):
status: New → In Progress
Revision history for this message
Iain Lane (laney) wrote :

No, that patch fixes both this bug and the other one. It's not wrong, but the upload should have closed this one too.

Revision history for this message
Iain Lane (laney) wrote :

(cyphermox, you tested that the patch does fix the problem for you, right?)

Revision history for this message
Iain Lane (laney) wrote :

Ok, I just built, upgraded and the bugs didn't happen for me. Phew. :-)

(FWIW, I got debconf prompts about selecting the layout, but maybe I broke my system somehow when developing these patches yesterday; you should test upgrades from zesty IMO.)

Iain Lane (laney)
Changed in console-setup (Ubuntu):
status: In Progress → 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.