summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2022-06-21 08:41:37 -0600
committerGitHub <noreply@github.com>2022-06-21 08:41:37 -0600
commit5572081608ec31ebc2a5c6bcddd5c10ab6323517 (patch)
treed550440c76b250cb7fcdce34f9a97772a1c71c2c /packages
parent33776311a798dde21d304980995ab78dcc5d9b38 (diff)
downloadcloud-init-git-5572081608ec31ebc2a5c6bcddd5c10ab6323517.tar.gz
redhat spec: udev/rules.d lives under /usr/lib on rhel-based systems (#1536)
Cloud-init now delivers udev rules to /usr/lib/udv/rules.d on rhel-based systems as of commit 7071512. Update spec template to unblock COPR builds of CentOS/8-Stream which fail on RPM build errors like: File not found: /build.../lib/udev/rules.d/66-azure-ephemeral.rules Use spec macro %{_udevrulesdir} instead of hard-coding rules dir.
Diffstat (limited to 'packages')
-rw-r--r--packages/redhat/cloud-init.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in
index 917e9516..0ea782b9 100644
--- a/packages/redhat/cloud-init.spec.in
+++ b/packages/redhat/cloud-init.spec.in
@@ -166,7 +166,7 @@ fi
%files
-/lib/udev/rules.d/66-azure-ephemeral.rules
+%{_udevrulesdir}/66-azure-ephemeral.rules
%if "%{init_system}" == "systemd"
/usr/lib/systemd/system-generators/cloud-init-generator