Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 570026

Summary: net-misc/dhcp: dhcrelay6.service: Invalid environment assignment, ignoring: "lower-iface="
Product: Gentoo Linux Reporter: Maxime de Roucy <maxime.deroucy>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: egorov_egor, maxime.deroucy, pacho, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=490800
Whiteboard:
Package list:
Runtime testing required: ---

Description Maxime de Roucy 2015-12-28 20:17:07 UTC
Hello

It is not possible to have environment variable named with "-"

With systemd, when you install net-misc/dhcp with ipv6 USE flag, there is errors in :
/etc/systemd/system/dhcrelay6.service.d/00gentoo.conf
/usr/lib/systemd/system/dhcrelay6.service

These files try to use "lower-iface" and "upper-iface" as environment variables, which is not possible.

systemd complain about it :
… systemd[1]: [/etc/systemd/system/dhcrelay6.service.d/00gentoo.conf:6] Invalid environment assignment, ignoring: "lower-iface="
… systemd[1]: [/etc/systemd/system/dhcrelay6.service.d/00gentoo.conf:7] Invalid environment assignment, ignoring: "upper-iface="

"lower-iface" and "upper-iface" should be "lower_iface" and "upper_iface".

Thank you in advance

Reproducible: Always

Steps to Reproduce:
1.install net-misc/dhcp with systemd profile and ipv6 use flag.
Comment 1 Pacho Ramos gentoo-dev 2018-01-29 08:53:18 UTC
Moving vars to use "_" instead of "-" here are in /lib64/systemd/system/dhcrelay6.service should be enough, right?