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

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