Skip to content

Commit

Permalink
cleanup empty ldconfig_paths directories
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldh committed May 22, 2018
1 parent df6bb5e commit f6e777e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dracut.sh
Expand Up @@ -1643,6 +1643,11 @@ if [[ $do_strip = yes ]] ; then
done
fi
# cleanup empty ldconfig_paths directories
for d in $(ldconfig_paths); do
rmdir -p --ignore-fail-on-non-empty "$initdir/$d" >/dev/null 2>&1
done
if [[ $do_strip = yes ]] && ! [[ $DRACUT_FIPS_MODE ]]; then
dinfo "*** Stripping files ***"
find "$initdir" -type f \
Expand Down

0 comments on commit f6e777e

Please sign in to comment.