Bug#1106484: systemd: syntax of /usr/lib/environment.d/99-environment.conf is invalid

Luca Boccassi bluca at debian.org
Tue May 27 15:36:19 BST 2025


Control: tags -1 wontfix
Control: close -1

On Sat, 24 May 2025 23:04:24 +0200 Alexandre Detiste
<alexandre.detiste at gmail.com> wrote:
> Package: systemd
> Version: 257.5-2
> Severity: normal
> 
> Dear Maintainer,
> 
> systemd-environment-d-generator generate errors in the Journal.
> 
> That is annoying.
> 
> Moreover the initial goal is probably not achieved
> or achieved by other means anyway.
> 
> I can not remmember while I needed this setting in 2018.
> 
> Maybe it can now be dropped altogether in both places.
> 
> Greetings
> 
> Alexandre
> 
> -----
> 
> 
> systemd package from 2025:
> 
>  mai 24 21:43:28 brix 30-systemd-environment-d-generator[684]:
> /usr/lib/environment.d/99-environment.conf:2: invalid variable name
> "export NO_AT_BRIDGE", ignoring.
>  mai 24 21:44:03 brix 30-systemd-environment-d-generator[764]:
> /usr/lib/environment.d/99-environment.conf:2: invalid variable name
> "export NO_AT_BRIDGE", ignoring.
>  mai 24 21:44:04 brix 30-systemd-environment-d-generator[806]:
> /usr/lib/environment.d/99-environment.conf:2: invalid variable name
> "export NO_AT_BRIDGE", ignoring.
> 
>  root at brix:~# cat /usr/lib/environment.d/99-environment.conf
>  export NO_AT_BRIDGE=1
> 
> 
> 
> manual setting from 2018:
> 
>  tchet at brix ~ $ ls -l /etc/environment
>  -rw-r--r-- 1 root root 22 11 mai  2018 /etc/environment
>  tchet at brix ~ $ cat /etc/environment
>  export NO_AT_BRIDGE=1

The syntax you used here is invalid, you have to drop the 'export'. The
format is well documented and hasn't changed:

https://www.freedesktop.org/software/systemd/man/latest/environment.d.html



More information about the Pkg-systemd-maintainers mailing list