Bug 670380 - Failed to open environment file '/etc/sysconfig/rdisc'
Summary: Failed to open environment file '/etc/sysconfig/rdisc'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-18 05:17 UTC by John Reiser
Modified: 2014-11-09 22:33 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-19 09:14:35 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.