blob: 643a3e2a5ac481fb1d192f79eca97806325040e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From 11121fe4d5af0554140d88685029fa248fa0c7c9 Mon Sep 17 00:00:00 2001
From: Scott Moser <smoser@brickies.net>
Date: Mon, 12 Jun 2017 14:10:58 -0400
Subject: [PATCH] systemd: make cloud-final.service run before apt daily
services.
This changes all cloud-init systemd units to run 'Before' the apt processes
that run daily and may cause a lock on the apt database.
apt-daily-upgrade.service contains 'After=apt-daily.service'.
Thus following order is enforced, so we can just be 'Before' the first.
apt-daily.service
apt-daily-upgrade.service
Note that this means only that apt-daily* will not run until
cloud-init has entirely finished. Any other processes running apt-get
operations are still affected by the global lock.
LP: #1693361
---
systemd/cloud-final.service | 1 +
1 file changed, 1 insertion(+)
--- a/systemd/cloud-final.service
+++ b/systemd/cloud-final.service
@@ -2,6 +2,7 @@
Description=Execute cloud user/final scripts
After=network-online.target cloud-config.service rc-local.service multi-user.target
Wants=network-online.target cloud-config.service
+Before=apt-daily.service
[Service]
Type=oneshot
|