Blame SOURCES/0006-add-etc-system-fips-for-dracut-fips-subpackage.patch

a56a5e
From 764b5209942dc435c7c611b0008975aa13738374 Mon Sep 17 00:00:00 2001
90b079
From: Harald Hoyer <harald@redhat.com>
90b079
Date: Wed, 2 Oct 2013 12:36:25 +0200
90b079
Subject: [PATCH] add /etc/system-fips for dracut-fips subpackage
90b079
90b079
---
90b079
 dracut.spec | 5 +++++
90b079
 1 file changed, 5 insertions(+)
90b079
90b079
diff --git a/dracut.spec b/dracut.spec
1755ca
index 87340d7a..b1cf9fef 100644
90b079
--- a/dracut.spec
90b079
+++ b/dracut.spec
90b079
@@ -271,6 +271,10 @@ echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-i
90b079
 echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf
90b079
 %endif
90b079
 
90b079
+%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
90b079
+> $RPM_BUILD_ROOT/etc/system-fips
90b079
+%endif
90b079
+
90b079
 # create compat symlink
90b079
 mkdir -p $RPM_BUILD_ROOT/sbin
90b079
 ln -s /usr/bin/dracut $RPM_BUILD_ROOT/sbin/dracut
90b079
@@ -413,6 +417,7 @@ rm -rf -- $RPM_BUILD_ROOT
90b079
 %defattr(-,root,root,0755)
90b079
 %{dracutlibdir}/modules.d/01fips
90b079
 %{dracutlibdir}/dracut.conf.d/40-fips.conf
90b079
+%config(missingok) /etc/system-fips
90b079
 %endif
90b079
 
90b079
 %files fips-aesni