|
|
604c1f |
From ed7060ac1d5003f70fc3da4d6006a1a958a47b04 Mon Sep 17 00:00:00 2001
|
|
|
604c1f |
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
604c1f |
Date: Mon, 20 Jun 2022 10:31:14 +0200
|
|
|
604c1f |
Subject: [PATCH 2/2] setup.py: adjust udev/rules default path (#1513)
|
|
|
604c1f |
|
|
|
604c1f |
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
604c1f |
RH-MergeRequest: 80: setup.py: adjust udev/rules default path (#1513)
|
|
|
604c1f |
RH-Commit: [2/2] 2cb64b004acbe1b6a30f943b0da51d2d1f2f0d50 (eesposit/cloud-init)
|
|
|
604c1f |
RH-Bugzilla: 2096269
|
|
|
604c1f |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
604c1f |
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
604c1f |
|
|
|
604c1f |
commit 70715125f3af118ae242770e61064c24f41e9a02
|
|
|
604c1f |
Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
604c1f |
Date: Thu Jun 16 20:39:42 2022 +0200
|
|
|
604c1f |
|
|
|
604c1f |
setup.py: adjust udev/rules default path (#1513)
|
|
|
604c1f |
|
|
|
604c1f |
RHEL must put cloudinit .rules files in /usr/lib/udev/rules.d
|
|
|
604c1f |
This place is a rhel standard and since it is used by all packages
|
|
|
604c1f |
cannot be modified.
|
|
|
604c1f |
|
|
|
604c1f |
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
604c1f |
|
|
|
604c1f |
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
604c1f |
---
|
|
|
604c1f |
setup.py | 7 ++++++-
|
|
|
604c1f |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
604c1f |
|
|
|
604c1f |
diff --git a/setup.py b/setup.py
|
|
|
604c1f |
index a9132d2c..fdf27cd7 100755
|
|
|
604c1f |
--- a/setup.py
|
|
|
604c1f |
+++ b/setup.py
|
|
|
604c1f |
@@ -302,6 +302,11 @@ data_files = [
|
|
|
604c1f |
),
|
|
|
604c1f |
]
|
|
|
604c1f |
if not platform.system().endswith("BSD"):
|
|
|
604c1f |
+
|
|
|
604c1f |
+ RULES_PATH = LIB
|
|
|
604c1f |
+ if os.path.isfile("/etc/redhat-release"):
|
|
|
604c1f |
+ RULES_PATH = "/usr/lib"
|
|
|
604c1f |
+
|
|
|
604c1f |
data_files.extend(
|
|
|
604c1f |
[
|
|
|
604c1f |
(
|
|
|
604c1f |
@@ -309,7 +314,7 @@ if not platform.system().endswith("BSD"):
|
|
|
604c1f |
["tools/hook-network-manager"],
|
|
|
604c1f |
),
|
|
|
604c1f |
(ETC + "/dhcp/dhclient-exit-hooks.d/", ["tools/hook-dhclient"]),
|
|
|
604c1f |
- (LIB + "/udev/rules.d", [f for f in glob("udev/*.rules")]),
|
|
|
604c1f |
+ (RULES_PATH + "/udev/rules.d", [f for f in glob("udev/*.rules")]),
|
|
|
604c1f |
(
|
|
|
604c1f |
ETC + "/systemd/system/sshd-keygen@.service.d/",
|
|
|
604c1f |
["systemd/disable-sshd-keygen-if-cloud-init-active.conf"],
|
|
|
604c1f |
--
|
|
|
604c1f |
2.31.1
|
|
|
604c1f |
|