dracut/0032.patch
Harald Hoyer b2d442e3cb dracut - 047-34.git20180604
- git snapshot
2018-06-04 09:02:07 +02:00

28 lines
773 B
Diff

From f6e777ec4b1031b18b835cd34ed644ebf4a2ace6 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Tue, 22 May 2018 09:48:23 +0200
Subject: [PATCH] cleanup empty ldconfig_paths directories
https://bugzilla.redhat.com/show_bug.cgi?id=1324746
---
dracut.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dracut.sh b/dracut.sh
index 5b5b27e3..a4406dd9 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -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 \