diff options
author | Harald Hoyer <harald@redhat.com> | 2013-08-06 11:43:58 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-08-07 10:33:15 +0200 |
commit | 5ae33613ab3145db12f21bca491d97832160cc1a (patch) | |
tree | f5549b32772dce01d20faca6fd8ec5640eea64a0 /dracut.sh | |
parent | 8652d5493d139105620ab82f34334f8acae13f13 (diff) | |
download | dracut-5ae33613ab3145db12f21bca491d97832160cc1a.tar.gz dracut-5ae33613ab3145db12f21bca491d97832160cc1a.tar.bz2 dracut-5ae33613ab3145db12f21bca491d97832160cc1a.zip |
dracut.sh: do not strip in FIPS mode
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 22 |
1 files changed, 4 insertions, 18 deletions
@@ -1209,25 +1209,11 @@ if [[ $do_strip = yes ]] ; then done fi -if [[ $do_strip = yes ]] ; then +if [[ $do_strip = yes ]] && ! [[ $DRACUT_FIPS_MODE ]]; then dinfo "*** Stripping files ***" - if [[ $DRACUT_FIPS_MODE ]]; then - find "$initdir" -type f \ - -executable -not -path '*/lib/modules/*.ko' -print0 \ - | while read -r -d $'\0' f; do - if ! [[ -e "${f%/*}/.${f##*/}.hmac" ]] \ - && ! [[ -e "/lib/hmaccalc/${f##*/}.hmac" ]] \ - && ! [[ -e "/lib64/hmaccalc/${f##*/}.hmac" ]] \ - && ! [[ -e "/lib/fipscheck/${f##*/}.hmac" ]] \ - && ! [[ -e "/lib64/fipscheck/${f##*/}.hmac" ]]; then - printf "%s\000" "$f"; - fi - done | xargs -r -0 strip -g 2>/dev/null - else - find "$initdir" -type f \ - -executable -not -path '*/lib/modules/*.ko' -print0 \ - | xargs -r -0 strip -g 2>/dev/null - fi + find "$initdir" -type f \ + -executable -not -path '*/lib/modules/*.ko' -print0 \ + | xargs -r -0 strip -g 2>/dev/null # strip kernel modules, but do not touch signed modules find "$initdir" -type f -path '*/lib/modules/*.ko' -print0 \ |