From: Nick Rosbrook Date: Thu, 23 May 2024 14:28:14 +0000 (-0400) Subject: fix(01systemd-ldconfig): install ldconfig.real X-Git-Tag: 102~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=125bb0a81e08d28f5c8a516a7e6cc8563de9fabb;p=thirdparty%2Fdracut-ng.git fix(01systemd-ldconfig): install ldconfig.real Also restore enablement of ldconfig.service in TEST-04-FULL-SYSTEMD. --- diff --git a/modules.d/01systemd-ldconfig/module-setup.sh b/modules.d/01systemd-ldconfig/module-setup.sh index 3a5842a6a..4e65d8921 100755 --- a/modules.d/01systemd-ldconfig/module-setup.sh +++ b/modules.d/01systemd-ldconfig/module-setup.sh @@ -33,7 +33,8 @@ install() { "$systemdsystemunitdir"/ldconfig.service \ "$systemdsystemunitdir/ldconfig.service.d/*.conf" \ "$systemdsystemunitdir"/sysinit.target.wants/ldconfig.service \ - ldconfig + ldconfig \ + ldconfig.real # Install required libraries. _arch=${DRACUT_ARCH:-$(uname -m)} diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index ce3572125..afd76457f 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -52,7 +52,7 @@ test_setup() { # Create what will eventually be our root filesystem onto an overlay "$DRACUT" -N -l --keep --tmpdir "$TESTDIR" \ - -m "test-root systemd" \ + -m "test-root systemd-ldconfig" \ -i "${PKGLIBDIR}/modules.d/80test-root/test-init.sh" "/sbin/test-init.sh" \ -i ./test-init.sh /sbin/test-init \ -I "findmnt" \ @@ -77,9 +77,6 @@ test_setup() { # softlink mtab ln -fs /proc/self/mounts "$initdir"/etc/mtab - # Do not need ldconfig.service in our rootfs - rm -rf "$initdir"/usr/lib/systemd/system/sysinit.target.wants/ldconfig.service - # install any Execs from the service files grep -Eho '^Exec[^ ]*=[^ ]+' "$initdir"{,/usr}/lib/systemd/system/*.service \ | while read -r i || [ -n "$i" ]; do