Package: incus
Version: 0.6-1
Severity: normal

If /etc/environment sets PATH (as is the case by default in Ubuntu, but
it's possible users have done this too), then the changes in
https://salsa.debian.org/go-team/packages/incus/-/commit/0048583bbb4d10f86cb402b9c51b8660afaf5402
to incus.service and incus-user.service to add /usr/libexec/incus to
PATH don't work, because EnvironmentFile= overrides Environment= (see
systemd.exec(5)).

We spent a bit of time debugging this in
https://discuss.linuxcontainers.org/t/incus-agent-fails-to-start/18969.
It looks like the right answer is to arrange that
"PATH=/usr/libexec/incus:/usr/sbin:/usr/bin:/sbin:/bin" is in a file
that you can give to EnvironmentFile=, and then things will work
properly: settings read from later files will override those read from
earlier files.

Thanks,

-- 
Colin Watson (he/him)                              [cjwat...@debian.org]

Reply via email to