]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
test: use systemd inside client test rootfs if available
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 26 Jan 2026 15:17:45 +0000 (16:17 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Mon, 26 Jan 2026 15:41:56 +0000 (10:41 -0500)
commitd36012143c7cb5d5ee4d19ee706d20384bdb315f
treee0e4abdcafe328536d1dec9aecd0f04742f15ba2
parente3b19a9fb5b3fa96e627a6e877aebdf94a7d133b
test: use systemd inside client test rootfs if available

Some tests (for example test 10 on ubuntu:devel) show this warning:

```
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to system scope bus via local transport: Host is down
```

This is caused by calling `systemctl --failed` in the client test rootfs
where systemd is not available/used.

Use systemd inside the client test rootfs if available to allow querying
the failed services from the initrd.
test/modules.d/70test-root/module-setup.sh