9f65cc
From 094514ae8383e03d95869a98ba8858ad74da1f0d Mon Sep 17 00:00:00 2001
9f65cc
From: Kairui Song <kasong@redhat.com>
9f65cc
Date: Fri, 30 Jul 2021 21:54:11 +0800
9f65cc
Subject: [PATCH] fix(squash): remove tailing '/' when installing ld.so.conf.d
9f65cc
9f65cc
This tailing '/' will result in following error:
9f65cc
9f65cc
dracut-install: ERROR: installing '/etc/ld.so.conf.d/'
9f65cc
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.kEFQLs/initramfs -d /etc/ld.so.conf.d/
9f65cc
9f65cc
Signed-off-by: Kairui Song <kasong@redhat.com>
9f65cc
9f65cc
Related:#1959336
9f65cc
---
9f65cc
 modules.d/99squash/module-setup.sh | 2 +-
9f65cc
 1 file changed, 1 insertion(+), 1 deletion(-)
9f65cc
9f65cc
diff --git a/modules.d/99squash/module-setup.sh b/modules.d/99squash/module-setup.sh
9f65cc
index 11964b97..7f5d365a 100644
9f65cc
--- a/modules.d/99squash/module-setup.sh
9f65cc
+++ b/modules.d/99squash/module-setup.sh
9f65cc
@@ -31,7 +31,7 @@ installpost() {
9f65cc
     # initdir also needs ld.so.* to make ld.so work
9f65cc
     inst /etc/ld.so.cache
9f65cc
     inst /etc/ld.so.conf
9f65cc
-    inst_dir /etc/ld.so.conf.d/
9f65cc
+    inst_dir /etc/ld.so.conf.d
9f65cc
 
9f65cc
     # Create mount points for squash loader
9f65cc
     mkdir -p "$initdir"/squash/
9f65cc