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