cleanup empty ldconfig_paths directories

https://bugzilla.redhat.com/show_bug.cgi?id=1324746
master
Harald Hoyer 2018-05-22 09:48:23 +02:00
parent df6bb5e959
commit f6e777ec4b
1 changed files with 5 additions and 0 deletions

View File

@ -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 \