From adda8eecf888c6852074c7a7404ae08ac7013a5c Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 31 Jan 2024 17:19:00 +0100 Subject: [PATCH] Temporarily build a custom initrd for the integration test suite libkmod became a dlopen() dep, so we need to get it into the initrd explicitly. Until the machinery around this propagates to Fedora, let's temporarily build a custom initrd with libkmod included. See: https://github.com/systemd/systemd/pull/31131 --- integration/upstream-tests/test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration/upstream-tests/test.sh b/integration/upstream-tests/test.sh index 2cebc13..8ffa61f 100755 --- a/integration/upstream-tests/test.sh +++ b/integration/upstream-tests/test.sh @@ -51,6 +51,13 @@ else fi fi +# Temporarily build custom initrd with libkmod installed explicitly, as it became +# a dlopen() dep +# See: https://github.com/systemd/systemd/pull/31131 +export INITRD="$(mktemp /var/tmp/ci-XXX.initrd)" +cp -fv "/boot/initramfs-$(uname -r).img" "$INITRD" +dracut -f -v -a crypt --install /usr/lib64/libkmod.so.2 --rebuild "$INITRD" + export DENY_LIST_MARKERS=fedora-skip # Skip TEST-64-UDEV-STORAGE for now, as it takes a really long time without KVM touch test/TEST-64-UDEV-STORAGE/fedora-skip