Blame 0014-dracut.spec-do-not-include-IMA-and-selinux-modules-w.patch

Harald Hoyer 953eb6
From 04ab68a4dd7dada7cd5fa2afc11ce7a12275af14 Mon Sep 17 00:00:00 2001
Harald Hoyer 953eb6
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 953eb6
Date: Tue, 17 Apr 2012 12:12:56 +0200
Harald Hoyer 953eb6
Subject: [PATCH] dracut.spec: do not include IMA and selinux modules with
Harald Hoyer 953eb6
 systemd
Harald Hoyer 953eb6
Harald Hoyer 953eb6
---
Harald Hoyer 953eb6
 dracut.spec |   16 +++++++++++++---
Harald Hoyer 0c26bf
 1 Datei geändert, 13 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)
Harald Hoyer 953eb6
Harald Hoyer 953eb6
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 953eb6
index 9cd08b7..9f64213 100644
Harald Hoyer 953eb6
--- a/dracut.spec
Harald Hoyer 953eb6
+++ b/dracut.spec
Harald Hoyer 953eb6
@@ -187,6 +187,14 @@ rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/02fips-aesni
Harald Hoyer 953eb6
 # remove gentoo specific modules
Harald Hoyer 953eb6
 rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/50gensplash
Harald Hoyer 953eb6
 
Harald Hoyer 953eb6
+%if %{defined _unitdir}
Harald Hoyer 953eb6
+# with systemd IMA and selinux modules do not make sense
Harald Hoyer 953eb6
+rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/96securityfs
Harald Hoyer 953eb6
+rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/97masterkey
Harald Hoyer 953eb6
+rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/98integrity
Harald Hoyer 953eb6
+rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/98selinux
Harald Hoyer 953eb6
+%endif
Harald Hoyer 953eb6
+
Harald Hoyer 953eb6
 mkdir -p $RPM_BUILD_ROOT/boot/dracut
Harald Hoyer 953eb6
 mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay
Harald Hoyer 953eb6
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
Harald Hoyer 953eb6
@@ -271,13 +279,15 @@ rm -rf $RPM_BUILD_ROOT
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/95terminfo
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/95udev-rules
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/95virtfs
Harald Hoyer 953eb6
+%if %{undefined _unitdir}
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/96securityfs
Harald Hoyer 953eb6
-%{dracutlibdir}/modules.d/97biosdevname
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/97masterkey
Harald Hoyer 953eb6
-%{dracutlibdir}/modules.d/98ecryptfs
Harald Hoyer 953eb6
+%{dracutlibdir}/modules.d/98selinux
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/98integrity
Harald Hoyer 953eb6
+%endif
Harald Hoyer 953eb6
+%{dracutlibdir}/modules.d/97biosdevname
Harald Hoyer 953eb6
+%{dracutlibdir}/modules.d/98ecryptfs
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/98pollcdrom
Harald Hoyer 953eb6
-%{dracutlibdir}/modules.d/98selinux
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/98syslog
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/98usrmount
Harald Hoyer 953eb6
 %{dracutlibdir}/modules.d/99base