If this is racy, then it should be possible to trigger it reliably by
adding sleep commands to one or more units.

I have looked at the topology of the base units in Ubuntu and I don't
see any bugs.  I don't understand your assertion that After=plymouth-
quit-wait.service is insufficient or why you refer to plymouth-quit
being queued "instead" of plymouth-quit-wait, which I do not see as a
possible outcome of the unit dependencies.

And if there is something to be fixed here, I think it's the reliability
of the plymouth-quit-wait dependency, not changing the dependency of
setvtrgb.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to console-setup in Ubuntu.
https://bugs.launchpad.net/bugs/1783283

Title:
  setvtrgb.service incorrectly ordered [with patchy]

Status in console-setup package in Ubuntu:
  Incomplete

Bug description:
  setvtrgb is not correctly ordered when used with plymouth. It has an 
After=plymouth-quit-wait.service, but that may not be applicable when 
plymouth-quit.service is queued instead. This ultimately results in semi-random 
setvtrgb results as calling setvtrgb too soon will do nothing if the VTs aren't 
up/still getting fiddled with with by plymouth. So, depending on the unit tree 
the VT may have the correct custom color, or the default kernel color.
  Since this is entirely dependent on the units being started, and their 
effective order, this is super hard to reproduce reliably. The most reliable 
way I have is an ISO which has Calamares instead of Ubiquity and SDDM instead 
of GDM, which 100% of the time ends up having a unit order where setvtrgb is 
called waaaaay too soon (even before getty.target, although I am not sure that 
matters as far as the VT colors are concerned).

  The solution seems excitingly simple though. Adding an After=plymouth-
  quit.service rule correctly orders the unit at least in my test case.
  Since After is only an order hint this should be entirely regression
  free.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/1783283/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to