diff --git a/files.udev b/files.udev index c32bbb7..1f8a39c 100644 --- a/files.udev +++ b/files.udev @@ -4,7 +4,9 @@ %config(noreplace) %{_sysconfdir}/udev/udev.conf %if %{without bootstrap} %dir %{_libdir}/cryptsetup +%endif %dir %{_modulesloaddir} +%if %{without bootstrap} %dir %{_prefix}/lib/kernel %dir %{_prefix}/lib/kernel/install.d %endif diff --git a/systemd.changes b/systemd.changes index 3280cf7..d0b5fe5 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Dec 21 10:11:53 UTC 2023 - Dominique Leuenberger + +- udev(-mini)?: ensure %_modulesloaddir exists and is owned + properly. Allows other packages to install modules without worry + of the parent directory. We do not ensure /etc/modules-load.d + exists in the -mini flavor, as that directory is not meant to be + used by packages. + ------------------------------------------------------------------- Wed Dec 20 12:49:09 UTC 2023 - Dominique Leuenberger diff --git a/systemd.spec b/systemd.spec index efdc4ba..07e641b 100644 --- a/systemd.spec +++ b/systemd.spec @@ -862,6 +862,10 @@ mkdir -p %{buildroot}%{_modprobedir} mv %{buildroot}/usr/lib/modprobe.d/* %{buildroot}%{_modprobedir}/ %endif +# Make sure /usr/lib/modules-load.d exists in udev(-mini)?, so other +# packages can install modules without worry +mkdir -p %{buildroot}%{_modulesloaddir} + # Make sure we don't ship static enablement symlinks in /etc during # installation, presets should be honoured instead. rm -rf %{buildroot}%{_sysconfdir}/systemd/system/*.target.{requires,wants}