Blame SOURCES/0195-dracut.sh-always-copy-prelink-files-in-FIPS-mode.patch

18971c
From bb232c88fa47ac8970d50dc97affe7cc65bc1ce9 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Tue, 8 Jul 2014 11:50:04 +0200
18971c
Subject: [PATCH] dracut.sh: always copy prelink files in FIPS mode
18971c
18971c
regardless of the the prelink={yes|no} switch
18971c
18971c
(cherry picked from commit 6cd7001b35c66a12787bc0943b9a7e83a3d443c0)
18971c
---
18971c
 dracut.sh | 26 ++++++++++++--------------
18971c
 1 file changed, 12 insertions(+), 14 deletions(-)
18971c
18971c
diff --git a/dracut.sh b/dracut.sh
18971c
index 705f090a..79974286 100755
18971c
--- a/dracut.sh
18971c
+++ b/dracut.sh
18971c
@@ -1314,20 +1314,18 @@ if [[ $kernel_only != yes ]]; then
18971c
     fi
18971c
 fi
18971c
 
18971c
-if [[ $do_prelink == yes ]]; then
18971c
-    PRELINK_BIN="$(command -v prelink)"
18971c
-    if [[ $UID = 0 ]] && [[ $PRELINK_BIN ]]; then
18971c
-        if [[ $DRACUT_FIPS_MODE ]]; then
18971c
-            dinfo "*** Installing prelink files ***"
18971c
-            inst_multiple -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf /etc/prelink.cache
18971c
-        else
18971c
-            dinfo "*** Pre-linking files ***"
18971c
-            inst_multiple -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf
18971c
-            chroot "$initdir" "$PRELINK_BIN" -a
18971c
-            rm -f -- "$initdir/$PRELINK_BIN"
18971c
-            rm -fr -- "$initdir"/etc/prelink.*
18971c
-            dinfo "*** Pre-linking files done ***"
18971c
-        fi
18971c
+PRELINK_BIN="$(command -v prelink)"
18971c
+if [[ $UID = 0 ]] && [[ $PRELINK_BIN ]]; then
18971c
+    if [[ $DRACUT_FIPS_MODE ]]; then
18971c
+        dinfo "*** Installing prelink files ***"
18971c
+        inst_multiple -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf /etc/prelink.cache
18971c
+    elif [[ $do_prelink == yes ]]; then
18971c
+        dinfo "*** Pre-linking files ***"
18971c
+        inst_multiple -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf
18971c
+        chroot "$initdir" "$PRELINK_BIN" -a
18971c
+        rm -f -- "$initdir/$PRELINK_BIN"
18971c
+        rm -fr -- "$initdir"/etc/prelink.*
18971c
+        dinfo "*** Pre-linking files done ***"
18971c
     fi
18971c
 fi
18971c