/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
... why would it be needed in a chroot? You don't bring up devices there.
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.
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.
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.
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
Erm, yes, but ... don't remove it?