Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aardvark: only use systemd-run when systemd is available
According to sd_booted(3) checking if /run/systemd/system exists is good enough to see if systemd is booted. While this check is not perfect it will at least allow us to use it inside a container where systemd binaries are installed but the container is run without systemd, see containers/podman#13533 Another option would be to use the systemd dbus API. I gave it a try but couldn't figure out the exact format we have to send and also had trouble connecting to the rootless session. For now this should help to get aardvark working inside a container. Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information