[systemd-bugs] [Bug 63477] New: Environment file parser gets confused by comments

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 12 09:26:31 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=63477

          Priority: medium
            Bug ID: 63477
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Environment file parser gets confused by comments
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: a.c.kalker at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Created attachment 77894
  --> https://bugs.freedesktop.org/attachment.cgi?id=77894&action=edit
service file used for debugging

After installing lm_sensors package, I discovered that lm_sensors.service
wasn't picking up its environment variables from its EnvironmentFile=
directive.
After some experimenting, I found that only the last environment variable
defined in the environment file was non-blank.

I found that the only way to ensure that all variables are set is to remove all
comments (preceded by '#') from the environment file.

As I'm not entirely sure what exactly in those comments is confusing systemd,
I'm including a failing and a working environment file, as well as the service
file I used for debugging.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130412/12f07729/attachment.html>


More information about the systemd-bugs mailing list