From 9cbdaafd566a956a5cf3380109949b900ca1475f Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 23 Jul 2023 13:17:13 +0200 Subject: [PATCH] - exclude /etc/* systemd paths from packages --- macros.systemd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/macros.systemd b/macros.systemd index 80cca62..301a580 100644 --- a/macros.systemd +++ b/macros.systemd @@ -33,9 +33,6 @@ %systemd_trigger() %{nil} # Keep paths for systemd related files -# Notes: -# %_sysctldir is TLD specific path, default in systemd is /usr/lib/sysctl.d -# %_modprobedir is used in kmod %_systemd_util_dir /lib/systemd %_unitdir /lib/systemd/system @@ -46,7 +43,7 @@ %_udevrulesdir /lib/udev/rules.d %_journalcatalogdir /usr/lib/systemd/catalog %_binfmtdir /usr/lib/binfmt.d -%_sysctldir /etc/sysctl.d +%_sysctldir /usr/lib/sysctl.d %_sysusersdir /usr/lib/sysusers.d %_tmpfilesdir /usr/lib/tmpfiles.d %_user_tmpfilesdir /usr/share/user-tmpfiles.d @@ -67,7 +64,12 @@ %exclude_systemd_files\ %exclude /lib/systemd\ %exclude /usr/lib/systemd\ +%exclude /etc/binfmt.d\ +%exclude /etc/modules-load.d\ +%exclude /etc/systemd\ +%exclude /etc/tmpfiles.d\ %exclude %{_binfmtdir}\ +%exclude %{_sysctldir}\ %exclude %{_sysusersdir}\ %exclude %{_tmpfilesdir}\ %exclude %{_user_tmpfilesdir}\ -- 2.46.0