Bug 670380

Summary: Failed to open environment file '/etc/sysconfig/rdisc'
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: iputilsAssignee: Jiri Skala <jskala>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: aglotov, jskala, lpoetter, metherid, mgracik, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-19 09:14:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Reiser 2011-01-18 05:17:43 UTC
Description of problem: Fresh install has no file /etc/sysconfig/rdisc that systemd expects for rdisc.service.


Version-Release number of selected component (if applicable):
lorax-0.2-2.fc15

How reproducible: every time


Steps to Reproduce:
1. Compose install DVD for x86_64 from rawhide using pungi [+lorax].
2. Fresh install DVD, defaults, General Internet desktop.
3. Boot newly-installed system.
  
Actual results:
[    8.354558] systemd[1]: [/lib/systemd/system/rdisc.service:7] Failed to open environment file '/etc/sysconfig/rdisc', ignoring: No such file or directory


Expected results: no complaint


Additional info:

Comment 1 Martin Gracik 2011-01-18 11:26:16 UTC
Nothing to do with lorax. This is either a systemd or anaconda bug.
I'm assigning this to systemd for now. If the missing file should be created by anaconda, switch it to anaconda.

Comment 2 Lennart Poettering 2011-01-18 21:10:23 UTC
The rdisc.service file should import the /etc/sysconfig/rdisc env var file with the following directive:

EnvironmentFile=-/etc/sysconfig/rdisc

instead of:

EnvironmentFile=/etc/sysconfig/rdisc

The "-" will ensure that no error message is generated if the file cannot be read for some reason. See systemd.exec(5) for details.

Note that "-" is a new feature in systemd 16, and has been introduced to mimic how the return code of executed binaries can be ignore by prefixing their invocation with "-". This feature has been added precisely to handle cases like this.

Comment 3 Jiri Skala 2011-01-19 09:14:35 UTC
I've added missing /etc/sysconfig/rdisc into package. This file was earlier optional. My test went fine.

Let me know your experience with updated package.