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