|
|
936480 |
From 49b0d2baf79199b3c9c0ce85cb0a7ac27e18cd3d Mon Sep 17 00:00:00 2001
|
|
|
936480 |
From: Eduardo Otubo <otubo@redhat.com>
|
|
|
936480 |
Date: Tue, 21 May 2019 13:42:00 +0200
|
|
|
936480 |
Subject: [PATCH] Revert: azure: ensure that networkmanager hook script runs
|
|
|
936480 |
|
|
|
936480 |
RH-Author: Eduardo Otubo <otubo@redhat.com>
|
|
|
936480 |
Message-id: <20190521134200.24783-1-otubo@redhat.com>
|
|
|
936480 |
Patchwork-id: 88133
|
|
|
936480 |
O-Subject: [rhel-7.7 cloud-init PATCH] Revert: azure: ensure that networkmanager hook script runs
|
|
|
936480 |
Bugzilla: 1707725
|
|
|
936480 |
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
|
|
|
936480 |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
936480 |
|
|
|
936480 |
This patch reverts the commit:
|
|
|
936480 |
|
|
|
936480 |
commit c48497435e8195dbd87262c2f00e484e63fe3343
|
|
|
936480 |
Author: Lars Kellogg-Stedman <lars@redhat.com>
|
|
|
936480 |
Date: Thu Jun 15 12:20:39 2017 -0400
|
|
|
936480 |
|
|
|
936480 |
azure: ensure that networkmanager hook script runs
|
|
|
936480 |
|
|
|
936480 |
The networkmanager hook script was failing to run due to the changes
|
|
|
936480 |
we made to resolve rhbz#1440831. This corrects the regression by
|
|
|
936480 |
allowing the NM hook script to run regardless of whether or not
|
|
|
936480 |
cloud-init is "enabled".
|
|
|
936480 |
|
|
|
936480 |
Resolves: rhbz#1460206
|
|
|
936480 |
X-downstream-only: true
|
|
|
936480 |
|
|
|
936480 |
Resolves: rhbz:1707725
|
|
|
936480 |
X-downstream-only: yes
|
|
|
936480 |
|
|
|
936480 |
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
|
|
|
936480 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
936480 |
---
|
|
|
936480 |
tools/hook-dhclient | 3 ++-
|
|
|
936480 |
tools/hook-network-manager | 3 ++-
|
|
|
936480 |
tools/hook-rhel.sh | 3 ++-
|
|
|
936480 |
3 files changed, 6 insertions(+), 3 deletions(-)
|
|
|
936480 |
|
|
|
936480 |
diff --git a/tools/hook-dhclient b/tools/hook-dhclient
|
|
|
936480 |
index 181cd51..02122f3 100755
|
|
|
936480 |
--- a/tools/hook-dhclient
|
|
|
936480 |
+++ b/tools/hook-dhclient
|
|
|
936480 |
@@ -13,7 +13,8 @@ is_azure() {
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
is_enabled() {
|
|
|
936480 |
- # only execute hooks if cloud-init is running on azure
|
|
|
936480 |
+ # only execute hooks if cloud-init is enabled and on azure
|
|
|
936480 |
+ [ -e /run/cloud-init/enabled ] || return 1
|
|
|
936480 |
is_azure
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
diff --git a/tools/hook-network-manager b/tools/hook-network-manager
|
|
|
936480 |
index 1d52cad..67d9044 100755
|
|
|
936480 |
--- a/tools/hook-network-manager
|
|
|
936480 |
+++ b/tools/hook-network-manager
|
|
|
936480 |
@@ -13,7 +13,8 @@ is_azure() {
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
is_enabled() {
|
|
|
936480 |
- # only execute hooks if cloud-init running on azure
|
|
|
936480 |
+ # only execute hooks if cloud-init is enabled and on azure
|
|
|
936480 |
+ [ -e /run/cloud-init/enabled ] || return 1
|
|
|
936480 |
is_azure
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
diff --git a/tools/hook-rhel.sh b/tools/hook-rhel.sh
|
|
|
936480 |
index d75767e..513a551 100755
|
|
|
936480 |
--- a/tools/hook-rhel.sh
|
|
|
936480 |
+++ b/tools/hook-rhel.sh
|
|
|
936480 |
@@ -13,7 +13,8 @@ is_azure() {
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
is_enabled() {
|
|
|
936480 |
- # only execute hooks if cloud-init is running on azure
|
|
|
936480 |
+ # only execute hooks if cloud-init is enabled and on azure
|
|
|
936480 |
+ [ -e /run/cloud-init/enabled ] || return 1
|
|
|
936480 |
is_azure
|
|
|
936480 |
}
|
|
|
936480 |
|
|
|
936480 |
--
|
|
|
936480 |
1.8.3.1
|
|
|
936480 |
|