From 7773c657a3bf39f3fe08d9c82015c5e1f04563b5a6b805370d9d75607d1e11d4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 19 Sep 2015 06:35:27 +0000 Subject: [PATCH] Accepting request 330895 from home:dimstar:Factory - 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). OBS-URL: https://build.opensuse.org/request/show/330895 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=136 --- mdadm.changes | 7 +++++++ mdadm.spec | 4 ++++ 2 files changed, 11 insertions(+) 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