sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init 10 months ago
Clone
fab9f2
From df1c0f391537071c34652ee6df9bff87e5aea230 Mon Sep 17 00:00:00 2001
fab9f2
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
fab9f2
Date: Wed, 14 Dec 2022 09:20:47 +0100
fab9f2
Subject: [PATCH] Ensure network ready before cloud-init service runs on RHEL
fab9f2
 (#1893)
fab9f2
fab9f2
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
fab9f2
RH-MergeRequest: 87: Ensure network ready before cloud-init service runs on RHEL (#1893)
fab9f2
RH-Bugzilla: 2151861
fab9f2
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
fab9f2
RH-Acked-by: Camilla Conte <cconte@redhat.com>
fab9f2
RH-Commit: [1/1] 5bb5f6f94a205854633fb1606ccc68e838c2030d
fab9f2
fab9f2
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2151861
fab9f2
fab9f2
commit 6e725f36647407d201af0603d7db11fc96a93d4d
fab9f2
Author: James Falcon <james.falcon@canonical.com>
fab9f2
Date:   Tue Dec 13 10:55:23 2022 -0600
fab9f2
fab9f2
    Ensure network ready before cloud-init service runs on RHEL (#1893)
fab9f2
fab9f2
    LP: #1998655
fab9f2
fab9f2
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
fab9f2
---
fab9f2
 systemd/cloud-init.service.tmpl | 1 +
fab9f2
 1 file changed, 1 insertion(+)
fab9f2
fab9f2
diff --git a/systemd/cloud-init.service.tmpl b/systemd/cloud-init.service.tmpl
fab9f2
index c170aef7..fc984d5c 100644
fab9f2
--- a/systemd/cloud-init.service.tmpl
fab9f2
+++ b/systemd/cloud-init.service.tmpl
fab9f2
@@ -16,6 +16,7 @@ After=networking.service
fab9f2
                   "miraclelinux", "openEuler", "rhel", "rocky", "virtuozzo"] %}
fab9f2
 After=network.service
fab9f2
 After=NetworkManager.service
fab9f2
+After=NetworkManager-wait-online.service
fab9f2
 {% endif %}
fab9f2
 {% if variant in ["suse"] %}
fab9f2
 After=wicked.service
fab9f2
-- 
fab9f2
2.38.1
fab9f2