Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 63903

Summary: /etc/rc.d/init.d/network starts network interfaces when it should not
Product: [Retired] Red Hat Linux Reporter: Manfred Hollstein <manfredh>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DEFERRED QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-29 19:52:40 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:

Description Manfred Hollstein 2002-04-21 08:32:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311

Description of problem:
Configuring network interfaces using redhat-config-network emits lines like this

  ONBOOT='no'

into the generated ifcfg-* files. Note that it's using the ' characters as
brackets aroung the variable's value! When /etc/rc.d/init.d/network is egrep'ing
through those ifcfg-* files during boot, it's however searching for

  "ONBOOT=\"?[Nn][Oo]\"?"

See the problem? The regex is wrong, in that it won't find the pattern in the
files generated by redhat-config-network. The regex should be this instead:

  "ONBOOT=['\"]?[Nn][Oo]['\"]?"

This will successfully find the following patterns:

  ONBOOT=no
  ONBOOT='no'
  ONBOOT="NO"


Version-Release number of selected component (if applicable):
initscripts-6.65-1

How reproducible:
Always

Steps to Reproduce:
1.Start redhat-config-network and configure a network device to *not* load ONBOOT
2.Save changes and reboot
3.Watch the messages and you'll see that the i/f _will_ be started!
	

Actual Results:  The interface will be started.

Expected Results:  The interface should not be started, of course.

Additional info:

Comment 1 Bill Nottingham 2002-04-21 19:11:28 UTC
The interface will not actually be started because 'boot' is passed to ifup,
which will do the right thing. It's just a weird display issue.

Comment 2 Bill Nottingham 2005-09-29 19:52:40 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of
response.

If this persists on a current release, such as Fedora Core 4, please open a new bug.