[cloud-init/f22: 6/9] Change network.target systemd deps to network-online.target

gholms gholms at fedoraproject.org
Fri Feb 20 02:22:08 UTC 2015


commit 851688f459285c9cd72f4a4b75a6fa7e8ff1b2d8
Author: Garrett Holmstrom <gholms at devzero.com>
Date:   Thu Feb 19 16:39:57 2015 -0800

    Change network.target systemd deps to network-online.target
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1110731
    https://bugzilla.redhat.com/show_bug.cgi?id=1112817
    https://bugzilla.redhat.com/show_bug.cgi?id=1147613

 cloud-init-0.7.6-network-online.patch | 45 +++++++++++++++++++++++++++++++++++
 cloud-init.spec                       |  7 ++++++
 2 files changed, 52 insertions(+)
---
diff --git a/cloud-init-0.7.6-network-online.patch b/cloud-init-0.7.6-network-online.patch
new file mode 100644
index 0000000..6bdb223
--- /dev/null
+++ b/cloud-init-0.7.6-network-online.patch
@@ -0,0 +1,45 @@
+Index: cloud-init-0.7.6/systemd/cloud-config.service
+===================================================================
+--- cloud-init-0.7.6.orig/systemd/cloud-config.service
++++ cloud-init-0.7.6/systemd/cloud-config.service
+@@ -1,8 +1,8 @@
+ [Unit]
+ Description=Apply the settings specified in cloud-config
+-After=network.target syslog.target cloud-config.target
++After=network-online.target syslog.target cloud-config.target
+ Requires=cloud-config.target
+-Wants=network.target
++Wants=network-online.target
+ 
+ [Service]
+ Type=oneshot
+Index: cloud-init-0.7.6/systemd/cloud-init.service
+===================================================================
+--- cloud-init-0.7.6.orig/systemd/cloud-init.service
++++ cloud-init-0.7.6/systemd/cloud-init.service
+@@ -1,8 +1,8 @@
+ [Unit]
+ Description=Initial cloud-init job (metadata service crawler)
+-After=local-fs.target network.target cloud-init-local.service
++After=local-fs.target network-online.target cloud-init-local.service
+ Before=sshd.service sshd-keygen.service
+-Requires=network.target
++Requires=network-online.target
+ Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service
+ 
+ [Service]
+Index: cloud-init-0.7.6/systemd/cloud-final.service
+===================================================================
+--- cloud-init-0.7.6.orig/systemd/cloud-final.service
++++ cloud-init-0.7.6/systemd/cloud-final.service
+@@ -1,8 +1,8 @@
+ [Unit]
+ Description=Execute cloud user/final scripts
+-After=network.target syslog.target cloud-config.service rc-local.service
++After=network-online.target syslog.target cloud-config.service rc-local.service
+ Requires=cloud-config.target
+-Wants=network.target
++Wants=network-online.target
+ 
+ [Service]
+ Type=oneshot
diff --git a/cloud-init.spec b/cloud-init.spec
index 68246ce..803ae50 100644
--- a/cloud-init.spec
+++ b/cloud-init.spec
@@ -37,6 +37,12 @@ Patch3:         cloud-init-0.7.6-ecdsa.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=1126365
 Patch4:         cloud-init-0.7.6-groupadd-list.patch
 
+# Change network.target systemd deps to network-online.target
+# https://bugzilla.redhat.com/show_bug.cgi?id=1110731
+# https://bugzilla.redhat.com/show_bug.cgi?id=1112817
+# https://bugzilla.redhat.com/show_bug.cgi?id=1147613
+Patch5:         cloud-init-0.7.6-network-online.patch
+
 # Deal with noarch -> arch
 # https://bugzilla.redhat.com/show_bug.cgi?id=1067089
 Obsoletes:      cloud-init < 0.7.5-3
@@ -168,6 +174,7 @@ fi
 - Stopped implicitly listing doc files twice
 - Added recognition of 3 ecdsa-sha2-nistp* ssh key types [RH:1151824]
 - Fixed handling of user group lists that contain spaces [RH:1126365 LP:1354694]
+- Changed network.target systemd deps to network-online.target [RH:1110731 RH:1112817 RH:1147613]
 
 * Fri Nov 14 2014 Colin Walters <walters at redhat.com> - 0.7.6-2
 - New upstream version [RH:974327]


More information about the scm-commits mailing list