From: Laszlo Gombos Date: Fri, 26 Apr 2024 13:36:45 +0000 (-0400) Subject: test(FULL-SYSTEMD): remove ldconfig.service from the target rootfs X-Git-Tag: 102~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc88be3dffb0667bb62ec955e9a618ff6ec9c510;p=thirdparty%2Fdracut-ng.git test(FULL-SYSTEMD): remove ldconfig.service from the target rootfs This change makes sure that ldconfig.service is not included in the target rootfs that the test case is booting into. --- diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index 3508eef27..5ec589db0 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -53,7 +53,6 @@ test_setup() { # Create what will eventually be our root filesystem onto an overlay "$DRACUT" -l --keep --tmpdir "$TESTDIR" \ -m "test-root systemd" \ - -I "ldconfig" \ -i ./test-init.sh /sbin/test-init \ -i ./fstab /etc/fstab \ -i "${PKGLIBDIR}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \ @@ -79,6 +78,9 @@ 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