SHA256
1
0
forked from pool/cloud-init

- Update cloud-init-service.patch

+ We need the following order:
    - something brings networking fully up (in our case wicked)
    - cloud-init.service runs
    - network-online.target is reached

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=58
This commit is contained in:
Robert Schweikert 2016-10-28 19:38:58 +00:00 committed by Git OBS Bridge
parent 9c42ade550
commit ad94d4c4c4
2 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,6 @@
--- systemd/cloud-init.service.orig
+++ systemd/cloud-init.service
@@ -1,9 +1,19 @@
@@ -1,9 +1,21 @@
[Unit]
Description=Initial cloud-init job (metadata service crawler)
-After=cloud-init-local.service networking.service
@ -14,9 +14,11 @@
+Wants=sshd.service
+After=cloud-init-local.service
+After=network.service
+After=network-online.target
+After=wicked.service
+Requires=network.service
+Requires=wicked.service
+Before=basic.target
+Before=network-online.target
+Before=sshd-keygen.service
+Before=sshd.service
+Before=systemd-user-sessions.service
@ -24,7 +26,7 @@
[Service]
Type=oneshot
@@ -15,4 +25,4 @@ TimeoutSec=0
@@ -15,4 +27,4 @@ TimeoutSec=0
StandardOutput=journal+console
[Install]

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Oct 28 19:37:24 UTC 2016 - rjschwei@suse.com
- Update cloud-init-service.patch
+ We need the following order:
- something brings networking fully up (in our case wicked)
- cloud-init.service runs
- network-online.target is reached
-------------------------------------------------------------------
Fri Oct 28 19:20:32 UTC 2016 - rjschwei@suse.com