]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
FIPS workaround for fipscheck dir
authorMilan Broz <mbroz@redhat.com>
Fri, 24 Aug 2012 11:31:57 +0000 (13:31 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 08:39:59 +0000 (10:39 +0200)
Also patch old install path... (used in Fedora 17)

Signed-off-by: Milan Broz <mbroz@redhat.com>
dracut-functions.sh

index c328f9fc5209e77c6a7a88e5dbbc90b586a154f1..d089b7f4b817ca00c7990254377d1ae37349e5d3 100755 (executable)
@@ -620,6 +620,12 @@ else
             if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
                 inst "${_src%/*}/.${_src##*/}.hmac" "${_target%/*}/.${_target##*/}.hmac"
             fi
+            if [[ -e "/lib/fipscheck/${_src##*/}.hmac" ]]; then
+                inst "/lib/fipscheck/${_src##*/}.hmac" "/lib/fipscheck/${_target##*/}.hmac"
+            fi
+            if [[ -e "/lib64/fipscheck/${_src##*/}.hmac" ]]; then
+                inst "/lib64/fipscheck/${_src##*/}.hmac" "/lib64/fipscheck/${_target##*/}.hmac"
+            fi
         fi
         ddebug "Installing $_src"
         cp --reflink=auto --sparse=auto -pfL "$_src" "${initdir}/$_target"
@@ -657,6 +663,12 @@ else
                 if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
                     inst "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
                 fi
+                if [[ -e "/lib/fipscheck/${_src##*/}.hmac" ]]; then
+                    inst "/lib/fipscheck/${_src##*/}.hmac" "/lib/fipscheck/${_dest##*/}.hmac"
+                fi
+                if [[ -e "/lib64/fipscheck/${_src##*/}.hmac" ]]; then
+                    inst "/lib64/fipscheck/${_src##*/}.hmac" "/lib64/fipscheck/${_dest##*/}.hmac"
+                fi
             fi
             _reallib=$(readlink -f "$_src")
             inst_simple "$_reallib" "$_reallib"