]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: include systemd-journald in client test rootfs
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 27 Jan 2026 12:04:27 +0000 (13:04 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 27 Jan 2026 12:41:46 +0000 (07:41 -0500)
After commit d36012143c7c ("test: use systemd inside client test rootfs
if available") some tests became racy (for example test 20 on
debian:latest or fedora:latest). There is `made it to the test rootfs!`
in the logs but not the `All OK`.

Following warning can be found in the logs:

```
systemd[1]: systemd-journald.socket: Unit configuration changed while unit was running, and no socket file descriptors are open. Unit not functional until restarted.
systemd[1]: systemd-udevd-kernel.socket: Unit configuration changed while unit was running, and no socket file descriptors are open. Unit not functional until restarted.
systemd[1]: systemd-journald-dev-log.socket: Unit configuration changed while unit was running, and no socket file descriptors are open. Unit not functional until restarted.
```

Include `systemd-journald` in client test root file system when systemd
is used to ensure that systemd-journald continues working.

Hopefully fixes: https://github.com/dracut-ng/dracut-ng/issues/2137

test/modules.d/70test-root/module-setup.sh

index 6d894ce80fcec02f2cd6412efb3131b693c15253..bcd9a0e0fa6e80a75671a47ad8994d99f6b5d4cb 100755 (executable)
@@ -15,7 +15,7 @@ depends() {
 
     # Use systemd if available
     if [[ -e "$systemdutildir"/systemd ]]; then
-        deps+=" systemd"
+        deps+=" systemd systemd-journald"
     fi
 
     echo "$deps"