|
|
df923a |
From 06f283cfb7c632530fdd004f96cc8ba71325ebf3 Mon Sep 17 00:00:00 2001
|
|
|
df923a |
From: Lars Kellogg-Stedman <lars@redhat.com>
|
|
|
df923a |
Date: Thu, 15 Jun 2017 12:20:39 -0400
|
|
|
df923a |
Subject: azure: ensure that networkmanager hook script runs
|
|
|
df923a |
|
|
|
df923a |
The networkmanager hook script was failing to run due to the changes
|
|
|
df923a |
we made to resolve rhbz#1440831. This corrects the regression by
|
|
|
df923a |
allowing the NM hook script to run regardless of whether or not
|
|
|
df923a |
cloud-init is "enabled".
|
|
|
df923a |
|
|
|
df923a |
Resolves: rhbz#1460206
|
|
|
df923a |
X-downstream-only: true
|
|
|
df923a |
---
|
|
|
df923a |
tools/hook-dhclient | 3 +--
|
|
|
df923a |
tools/hook-network-manager | 3 +--
|
|
|
df923a |
tools/hook-rhel.sh | 3 +--
|
|
|
df923a |
3 files changed, 3 insertions(+), 6 deletions(-)
|
|
|
df923a |
|
|
|
df923a |
diff --git a/tools/hook-dhclient b/tools/hook-dhclient
|
|
|
df923a |
index 02122f3..181cd51 100755
|
|
|
df923a |
--- a/tools/hook-dhclient
|
|
|
df923a |
+++ b/tools/hook-dhclient
|
|
|
df923a |
@@ -13,8 +13,7 @@ is_azure() {
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
is_enabled() {
|
|
|
df923a |
- # only execute hooks if cloud-init is enabled and on azure
|
|
|
df923a |
- [ -e /run/cloud-init/enabled ] || return 1
|
|
|
df923a |
+ # only execute hooks if cloud-init is running on azure
|
|
|
df923a |
is_azure
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
diff --git a/tools/hook-network-manager b/tools/hook-network-manager
|
|
|
df923a |
index 67d9044..1d52cad 100755
|
|
|
df923a |
--- a/tools/hook-network-manager
|
|
|
df923a |
+++ b/tools/hook-network-manager
|
|
|
df923a |
@@ -13,8 +13,7 @@ is_azure() {
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
is_enabled() {
|
|
|
df923a |
- # only execute hooks if cloud-init is enabled and on azure
|
|
|
df923a |
- [ -e /run/cloud-init/enabled ] || return 1
|
|
|
df923a |
+ # only execute hooks if cloud-init running on azure
|
|
|
df923a |
is_azure
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
diff --git a/tools/hook-rhel.sh b/tools/hook-rhel.sh
|
|
|
df923a |
index 513a551..d75767e 100755
|
|
|
df923a |
--- a/tools/hook-rhel.sh
|
|
|
df923a |
+++ b/tools/hook-rhel.sh
|
|
|
df923a |
@@ -13,8 +13,7 @@ is_azure() {
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
is_enabled() {
|
|
|
df923a |
- # only execute hooks if cloud-init is enabled and on azure
|
|
|
df923a |
- [ -e /run/cloud-init/enabled ] || return 1
|
|
|
df923a |
+ # only execute hooks if cloud-init is running on azure
|
|
|
df923a |
is_azure
|
|
|
df923a |
}
|
|
|
df923a |
|
|
|
df923a |
--
|
|
|
df923a |
1.8.3.1
|
|
|
df923a |
|