diff --git a/mdadm.changes b/mdadm.changes index 4101d9b..a8a9c6d 100644 --- a/mdadm.changes +++ b/mdadm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 14 13:21:33 UTC 2015 - dimstar@opensuse.org + +- Own %{_systemdshutdowndir} in case nothing else does. This + ensures build success even if systemd-mini does not own it + (happens in some versions of our package). + ------------------------------------------------------------------- Mon Aug 31 11:43:43 UTC 2015 - dimstar@opensuse.org diff --git a/mdadm.spec b/mdadm.spec index a06a7b6..f5c8058 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -108,6 +108,10 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcmdmonitor /etc/cron.daily/mdadm %dir /etc/cron.d %config /etc/cron.d/mdadm +# %%{_systemdshutdowndir}/ is not owned by all versions of systemd-mini. +# But we really do not want to pull in a full systemd, so we rather just own +# that directory by ourselves too. After all, this is allowed. +%dir %{_systemdshutdowndir} %{_systemdshutdowndir}/mdadm.shutdown %{_unitdir}/mdmon@.service %{_unitdir}/mdmonitor.service