summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-06-12 14:10:58 -0400
committerScott Moser <smoser@brickies.net>2017-06-13 10:39:31 -0400
commit11121fe4d5af0554140d88685029fa248fa0c7c9 (patch)
tree932e137b861bdda683e1bc4bc415f2ddd8c4c8b5 /systemd
parent95fd5a2b5426f3420e05ac190eb9f286df630484 (diff)
downloadvyos-cloud-init-11121fe4d5af0554140d88685029fa248fa0c7c9.tar.gz
vyos-cloud-init-11121fe4d5af0554140d88685029fa248fa0c7c9.zip
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
Diffstat (limited to 'systemd')
-rw-r--r--systemd/cloud-final.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/cloud-final.service b/systemd/cloud-final.service
index b8f69b78..66f5b8fc 100644
--- 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