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
This commit is contained in:
Frantisek Sumsal 2024-01-31 17:19:00 +01:00
commit adda8eecf8

View file

@ -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