build initramfs: prelink --undo /sbin/*
authorJohn Reiser <jreiser@bitwagon.com>
Fri, 19 Aug 2011 03:55:35 +0000 (20:55 -0700)
committerHarald Hoyer <harald@redhat.com>
Fri, 19 Aug 2011 06:10:57 +0000 (08:10 +0200)
Fix a typo (omitting the 's' in "sbin") which caused
"prelink --undo" twice on      /bin/*,  and
"prelink --undo" omitted for  /sbin/*.

dracut

diff --git a/dracut b/dracut
index dfa71a1..fd36805 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -643,7 +643,7 @@ type hardlink &>/dev/null && {
 
 if strstr "$modules_loaded" " fips " && command -v prelink >/dev/null; then
     for i in $initdir/bin/* \
-       $initdir/bin/* \
+       $initdir/sbin/* \
        $initdir/usr/bin/* \
        $initdir/usr/sbin/*; do
        [ -x $i ] && prelink -u $i &>/dev/null