Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570026 - net-misc/dhcp: dhcrelay6.service: Invalid environment assignment, ignoring: "lower-iface="
Summary: net-misc/dhcp: dhcrelay6.service: Invalid environment assignment, ignoring: "...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-28 20:17 UTC by Maxime de Roucy
Modified: 2022-11-20 10:42 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?