Skip to content

QSR021 - Unit points to not a systemd unit

Message

Invalid depdency is specified: %dependency%

Explanation

Quadlet will automatically translate dependencies, specified in the keys Wants, Requires, Requisite, BindsTo, PartOf, Upholds, Conflicts, Before and After of the [Unit] section, between different Quadlet units.

But this is true only after 5.5.0 version. This rule gives error if dependency not translated and version if before 5.5.0.

For example the fedora.container unit below specifies a dependency on the basic.container unit.

print("Hello")
[Unit]
After=basic.container
Requires=basic.container

[Container]
Image=registry.fedoraproject.org/fedora:41

Before 5.5.0 version, file above should look:

[Unit]
After=basic-container.service
Requires=basic-container.service

[Container]
Image=registry.fedoraproject.org/fedora:41