Blame 0039-dracut.sh-do-not-preunlink-for-fips-mode.patch

Harald Hoyer e2c90d
From 8461734ee47fb1078e543f55f9ca6f8530855361 Mon Sep 17 00:00:00 2001
Harald Hoyer e2c90d
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer e2c90d
Date: Thu, 25 Apr 2013 21:16:03 +0200
Harald Hoyer e2c90d
Subject: [PATCH] dracut.sh: do not preunlink for fips mode
Harald Hoyer e2c90d
Harald Hoyer e2c90d
just install prelink and the cache files
Harald Hoyer e2c90d
---
Harald Hoyer e2c90d
 dracut.sh | 6 +-----
Harald Hoyer e2c90d
 1 file changed, 1 insertion(+), 5 deletions(-)
Harald Hoyer e2c90d
Harald Hoyer e2c90d
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer e2c90d
index 82b4a5f..5f0a1b3 100755
Harald Hoyer e2c90d
--- a/dracut.sh
Harald Hoyer e2c90d
+++ b/dracut.sh
Harald Hoyer e2c90d
@@ -1140,12 +1140,8 @@ fi
Harald Hoyer e2c90d
 PRELINK_BIN=$(command -v prelink)
Harald Hoyer e2c90d
 if [[ $UID = 0 ]] && [[ $PRELINK_BIN ]]; then
Harald Hoyer e2c90d
     if [[ $DRACUT_FIPS_MODE ]]; then
Harald Hoyer e2c90d
-        dinfo "*** Pre-unlinking files ***"
Harald Hoyer e2c90d
+        dinfo "*** Installing prelink files ***"
Harald Hoyer e2c90d
         dracut_install -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf /etc/prelink.cache
Harald Hoyer e2c90d
-        chroot "$initdir" $PRELINK_BIN -u -a
Harald Hoyer e2c90d
-        rm -f "$initdir"/$PRELINK_BIN
Harald Hoyer e2c90d
-        rm -fr "$initdir"/etc/prelink.*
Harald Hoyer e2c90d
-        dinfo "*** Pre-unlinking files done ***"
Harald Hoyer e2c90d
     else
Harald Hoyer e2c90d
         dinfo "*** Pre-linking files ***"
Harald Hoyer e2c90d
         dracut_install -o prelink /etc/prelink.conf /etc/prelink.conf.d/*.conf