@@ -77,7 +77,7 @@ ADDITIONAL_DEPS=(
77
77
78
78
# Install and enable EPEL
79
79
cmd_retry dnf -y install epel-release epel-next-release dnf-plugins-core
80
- cmd_retry dnf config-manager --enable epel --enable powertools
80
+ cmd_retry dnf config-manager --enable epel --enable crb
81
81
# Upgrade the machine to get the most recent environment
82
82
cmd_retry dnf -y upgrade
83
83
# Install systemd's build dependencies
186
186
-Dslow-tests=true
187
187
-Dtests=unsafe
188
188
-Dinstall-tests=true
189
- --werror
189
+ # FIXME?: --werror
190
+ # gcc in RHEL 9 has some additional warnings enabled for which we don't have the respective
191
+ # patches in RHEL 8's systemd
192
+ # --werror
190
193
-Dman=true
191
194
-Dhtml=true
192
195
)
@@ -220,6 +223,27 @@ else
220
223
CGROUP_KERNEL_ARGS=" systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller=1"
221
224
fi
222
225
226
+ # Disable irqbalance, as we don't really need it and it sometimes SIGTRAPs, causing spurious
227
+ # coredumps
228
+ systemctl disable --now irqbalance
229
+
230
+ # dbus-broker on RHEL 9 is not compatible with systemd < 243, so replace it with dbus-daemon
231
+ dnf -y install dbus-daemon
232
+ systemctl disable dbus-broker
233
+ systemctl disable --global dbus-broker
234
+ systemctl enable dbus-daemon
235
+ systemctl enable --global dbus-daemon
236
+
237
+ # Several test/test-functions tweaks to make it work with RHEL 9
238
+ #
239
+ # RHEL 8's test/test-functions overwrites $QEMU_OPTIONS instead of appending to
240
+ # it, so setting it as usual won't work. Let's, temporarily, patch
241
+ # test/test-functions directly
242
+ sed -i ' 0,/QEMU_OPTIONS=".*/s//&\n-cpu Nehalem \\/' test/test-functions
243
+ # Make it work on systems where dbus-broker is the default
244
+ sed -i ' /dbus.service/d' test/test-functions
245
+ sed -i ' /dbus.socket/a\ inst /etc/systemd/system/dbus.service' test/test-functions
246
+
223
247
# Let's check if the new systemd at least boots before rebooting the system
224
248
(
225
249
# Ensure the initrd contains the same systemd version as the one we're
228
252
# comments in `testsuite.sh` for the explanation
229
253
export INITRD=" /var/tmp/ci-sanity-initramfs-$( uname -r) .img"
230
254
cp -fv " /boot/initramfs-$( uname -r) .img" " $INITRD "
231
- dracut --kver " $LATEST_KERNEL " -o " multipath rngd" --filesystems ext4 --rebuild " $INITRD "
255
+ dracut --kver " $LATEST_KERNEL " -o " multipath rngd dbus-broker " -a dbus-daemon --filesystems ext4 --rebuild " $INITRD "
232
256
233
257
centos_ensure_qemu_symlink
234
258
243
267
export QEMU_TIMEOUT=600
244
268
# Disable nspawn version of the test
245
269
export TEST_NO_NSPAWN=1
246
- export QEMU_OPTIONS=" -cpu max"
270
+ # Work around 'Fatal glibc error: CPU does not support x86-64-v2'
271
+ # See:
272
+ # - https://bugzilla.redhat.com/show_bug.cgi?id=2060839
273
+ # - https://access.redhat.com/solutions/6833751
274
+ export QEMU_OPTIONS=" -cpu Nehalem"
247
275
248
276
make -C test/TEST-01-BASIC clean setup run clean
249
277
257
285
SYSTEMD_LOG_LEVEL=debug systemctl daemon-reexec
258
286
[[ -n " ${XDG_RUNTIME_DIR:- } " ]] && SYSTEMD_LOG_LEVEL=debug systemctl --user daemon-reexec
259
287
260
- dracut -f --regenerate-all
288
+ dracut -o dbus-broker -a dbus-daemon - f --regenerate-all
261
289
262
290
# Check if the new dracut image contains the systemd module to avoid issues
263
291
# like systemd/systemd#11330
0 commit comments