Public bug reported:

[Impact]
apt-daily.timer is enabled on every boot and pulls in network-online.target via 
Wants and After. While nothing has an After=apt-daily.timer (or rather an 
After=timers.target) and this should thus not impact boot performance, the 
rc-local.service specifies an After=network-online.target and the login stuff 
(getty, gdm, etc) is ordered After=rc-local, thus severely increasing the time 
to login if nothing else pulls in network-online (like an LSB script).

This works around the problem on most boots, the problem will only occur
if the timer would have elapsed while the machine was off.

[Test case]
Well, the change is fairly obvious. Actually testing that is pointless, and 
depending on the system configuration, network-online.target might be pulled in 
by something else. So just look at the file and check that the 
network-online.target dependency moved to the service.

[Regression potential]
Literally none. We just move the dependency to the service which actually needs 
it.

** Affects: apt (Ubuntu)
     Importance: High
         Status: Fix Released

** Affects: apt (Ubuntu Xenial)
     Importance: High
         Status: Triaged

** Affects: apt (Ubuntu Zesty)
     Importance: High
         Status: Triaged

** Also affects: apt (Ubuntu Zesty)
   Importance: Undecided
       Status: New

** Also affects: apt (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: apt (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: apt (Ubuntu Zesty)
       Status: New => Triaged

** Changed in: apt (Ubuntu Xenial)
   Importance: Undecided => High

** Changed in: apt (Ubuntu Zesty)
   Importance: Undecided => High

** Changed in: apt (Ubuntu)
   Importance: Undecided => High

** Changed in: apt (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1716973

Title:
  Don't pull in network-online.target in apt-daily.timer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1716973/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to