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