-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0032.patch
More file actions
27 lines (23 loc) · 773 Bytes
/
0032.patch
File metadata and controls
27 lines (23 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 \