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

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