16d12a
From 301b1770d3e2580c3ee168261a9a97d143cc5f59 Mon Sep 17 00:00:00 2001
16d12a
From: Eduardo Otubo <otubo@redhat.com>
16d12a
Date: Mon, 1 Jun 2020 11:58:06 +0200
16d12a
Subject: [PATCH] Make cloud-init.service execute after network is up
16d12a
16d12a
RH-Author: Eduardo Otubo <otubo@redhat.com>
16d12a
Message-id: <20200526090804.2047-1-otubo@redhat.com>
16d12a
Patchwork-id: 96809
16d12a
O-Subject: [RHEL-8.2.1 cloud-init PATCH] Make cloud-init.service execute after network is up
16d12a
Bugzilla: 1803928
16d12a
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
16d12a
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
16d12a
16d12a
cloud-init.service needs to wait until network is fully up before
16d12a
continuing executing and configuring its service.
16d12a
16d12a
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
16d12a
16d12a
x-downstream-only: yes
16d12a
Resolves: rhbz#1831646
16d12a
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
16d12a
---
16d12a
 rhel/systemd/cloud-init.service | 1 +
16d12a
 1 file changed, 1 insertion(+)
16d12a
16d12a
diff --git a/rhel/systemd/cloud-init.service b/rhel/systemd/cloud-init.service
16d12a
index d0023a0..0b3d796 100644
16d12a
--- a/rhel/systemd/cloud-init.service
16d12a
+++ b/rhel/systemd/cloud-init.service
16d12a
@@ -5,6 +5,7 @@ Wants=sshd-keygen.service
16d12a
 Wants=sshd.service
16d12a
 After=cloud-init-local.service
16d12a
 After=NetworkManager.service network.service
16d12a
+After=NetworkManager-wait-online.service
16d12a
 Before=network-online.target
16d12a
 Before=sshd-keygen.service
16d12a
 Before=sshd.service
16d12a
-- 
16d12a
1.8.3.1
16d12a