Bug 495486

Summary: /etc/sysconfig/network is missing
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-14 18:32:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 471381    

Description Daniel Mach 2009-04-13 12:32:32 UTC
/etc/sysconfig/network is created during installation by anaconda.
When alternative installation method is used (e.g. yum install to chroot), network config file is missing.

Can you include this file in the initscripts package?

I can imagine it's content like this:
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost

Comment 1 Bill Nottingham 2009-04-14 17:28:35 UTC
... why would it be needed in a chroot? You don't bring up devices there.

Comment 2 Daniel Mach 2009-04-14 18:00:25 UTC
For example after I install a virtual guest via yum.

I don't like that anaconda does all post-install setup and packages do not contain couple files with default values.

Comment 3 Bill Nottingham 2009-04-14 18:26:15 UTC
Well, we don't set up any ifcfg-XXX files with a yum install either, so I'm not sure we should special-case this as well.

Comment 4 Bill Nottingham 2009-04-14 18:32:47 UTC
Similarly, we don't configure grub during yum-based package installation either (and my, would that be gross.)

I'm inclined to close this WONTIFX. If the tools we ship such as system-config-network and/or NetworkManager can't work on a yum-installed chroot and then write a proper /etc/sysconfig/network, I may reconsider.

Comment 5 Daniel Mach 2009-04-14 18:36:12 UTC
Right, but several scripts (like avahi initscript) depend on this file.

example from rhel-5 after I removed /etc/sysconfig/network:
/etc/init.d/avahi-daemon restart
/etc/init.d/avahi-daemon: line 18: /etc/sysconfig/network: No such file or directory

Comment 6 Bill Nottingham 2009-04-14 18:43:30 UTC
Erm, yes, but ... don't remove it?