diff --git a/cloud-init-0.7.9-defaultdeps.patch b/cloud-init-0.7.9-defaultdeps.patch deleted file mode 100644 index 75dd55f..0000000 --- a/cloud-init-0.7.9-defaultdeps.patch +++ /dev/null @@ -1,11 +0,0 @@ -Index: cloud-init-0.7.9/systemd/cloud-init.service -=================================================================== ---- cloud-init-0.7.9.orig/systemd/cloud-init.service -+++ cloud-init-0.7.9/systemd/cloud-init.service -@@ -1,6 +1,5 @@ - [Unit] - Description=Initial cloud-init job (metadata service crawler) --DefaultDependencies=no - Wants=cloud-init-local.service - Wants=sshd-keygen.service - Wants=sshd.service diff --git a/cloud-init-0.7.9-systemd-cloud-init.patch b/cloud-init-0.7.9-systemd-cloud-init.patch new file mode 100644 index 0000000..bd1c58e --- /dev/null +++ b/cloud-init-0.7.9-systemd-cloud-init.patch @@ -0,0 +1,21 @@ +Index: cloud-init-0.7.9/systemd/cloud-init.service +=================================================================== +--- cloud-init-0.7.9.orig/systemd/cloud-init.service ++++ cloud-init-0.7.9/systemd/cloud-init.service +@@ -1,6 +1,5 @@ + [Unit] + Description=Initial cloud-init job (metadata service crawler) +-DefaultDependencies=no + Wants=cloud-init-local.service + Wants=sshd-keygen.service + Wants=sshd.service +@@ -9,9 +8,7 @@ After=networking.service + Before=network-online.target + Before=sshd-keygen.service + Before=sshd.service +-Before=sysinit.target + Before=systemd-user-sessions.service +-Conflicts=shutdown.target + + [Service] + Type=oneshot diff --git a/cloud-init.spec b/cloud-init.spec index 462db7b..59a4c17 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -39,7 +39,10 @@ Patch12: cloud-init-0.7.9-disable-lxd-tests.patch # Fix calls to hostnamectl occurring before dbus is up # https://bugzilla.redhat.com/show_bug.cgi?id=1417025 -Patch13: cloud-init-0.7.9-defaultdeps.patch +# Fix systemd dependency cycle with cloud-init and multi-user.target +# https://bugzilla.redhat.com/show_bug.cgi?id=1428492 +# https://bugzilla.redhat.com/show_bug.cgi?id=1430511 +Patch13: cloud-init-0.7.9-systemd-cloud-init.patch # Fix systemd dependency cycle with cloud-final and os-collect-config # https://bugzilla.redhat.com/show_bug.cgi?id=1420946 @@ -184,6 +187,7 @@ nosetests-%{python3_version} tests/unittests/ \ %changelog * Tue Mar 14 2017 Garrett Holmstrom - 0.7.9-4 - Fixed systemd dependency cycle with cloud-final and os-collect-config [RH:1420946, RH:1428492] +- Fixed systemd dependency cycle with cloud-init and multi-user.target [RH:1428492, RH:1430511] * Fri Feb 10 2017 Fedora Release Engineering - 0.7.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild