Blame 0059-Makefile-do-not-install-service-from-98systemd.-They.patch

Harald Hoyer 89b080
From 2023d8eb5b1a92cb830059384f4935a42505eaaa Mon Sep 17 00:00:00 2001
Harald Hoyer 89b080
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 89b080
Date: Mon, 9 Jul 2012 12:41:56 +0200
Harald Hoyer 89b080
Subject: [PATCH] Makefile: do not install service from 98systemd. They are
Harald Hoyer 89b080
 copied to /run
Harald Hoyer 89b080
Harald Hoyer 89b080
---
Harald Hoyer 89b080
 Makefile    |   11 +----------
Harald Hoyer 89b080
 dracut.spec |    5 ++---
Harald Hoyer 89b080
 2 files changed, 3 insertions(+), 13 deletions(-)
Harald Hoyer 89b080
Harald Hoyer 89b080
diff --git a/Makefile b/Makefile
Harald Hoyer 89b080
index 07741d0..e20ba06 100644
Harald Hoyer 89b080
--- a/Makefile
Harald Hoyer 89b080
+++ b/Makefile
Harald Hoyer 89b080
@@ -83,16 +83,7 @@ install: doc dracut-version.sh
Harald Hoyer 89b080
 	ln -s dracut.cmdline.7 $(DESTDIR)$(mandir)/man7/dracut.kernel.7
Harald Hoyer 89b080
 	if [ -n "$(systemdsystemunitdir)" ]; then \
Harald Hoyer 89b080
 		mkdir -p $(DESTDIR)$(systemdsystemunitdir); \
Harald Hoyer 89b080
-		for i in \
Harald Hoyer 89b080
-			modules.d/98systemd/dracut-initqueue.service \
Harald Hoyer 89b080
-			modules.d/98systemd/dracut-pre-pivot.service \
Harald Hoyer 89b080
-			modules.d/98systemd/dracut-pre-trigger.service \
Harald Hoyer 89b080
-			modules.d/98systemd/dracut-pre-udev.service \
Harald Hoyer 89b080
-			modules.d/98systemd/initrd-switch-root.service \
Harald Hoyer 89b080
-			modules.d/98systemd/initrd-switch-root.target \
Harald Hoyer 89b080
-			dracut-shutdown.service; do \
Harald Hoyer 89b080
-				install -m 0644 $$i $(DESTDIR)$(systemdsystemunitdir); \
Harald Hoyer 89b080
-		done; \
Harald Hoyer 89b080
+		install -m 0644 dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir); \
Harald Hoyer 89b080
 		mkdir -p $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants; \
Harald Hoyer 89b080
 		ln -s ../dracut-shutdown.service \
Harald Hoyer 89b080
 		$(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants/dracut-shutdown.service; \
Harald Hoyer 89b080
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 89b080
index 6be1c3d..c17860d 100644
Harald Hoyer 89b080
--- a/dracut.spec
Harald Hoyer 89b080
+++ b/dracut.spec
Harald Hoyer 89b080
@@ -312,9 +312,8 @@ rm -rf $RPM_BUILD_ROOT
Harald Hoyer 89b080
 %attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/dracut.log
Harald Hoyer 89b080
 %dir %{_sharedstatedir}/initramfs
Harald Hoyer 89b080
 %if %{defined _unitdir}
Harald Hoyer 89b080
-%{_unitdir}/*.service
Harald Hoyer 89b080
-%{_unitdir}/*.target
Harald Hoyer 89b080
-%{_unitdir}/*/*.service
Harald Hoyer 89b080
+%{_unitdir}/dracut-shutdown.service
Harald Hoyer 89b080
+%{_unitdir}/shutdown.target.wants/dracut-shutdown.service
Harald Hoyer 89b080
 %endif
Harald Hoyer 89b080
 
Harald Hoyer 89b080
 %files network