Bug 175064 - On boot udev/hotplug ignores ONBOOT=no
Summary: On boot udev/hotplug ignores ONBOOT=no
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hotplug
Version: 4
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-06 04:00 UTC by Leam
Modified: 2014-03-17 02:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-06 05:43:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Leam 2005-12-06 04:00:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
IBM T30 with wire on eth0 and internal wireless ethernet on eth1. /etc/sysconfig/network-scripts/ifcfg-eth1 has ONBOOT=no. 
On boot udev calls hotplug which calls:
  /sbin/ifup /etc/sysconfig/network-scripts/ifcfg-eth1
With no options and thus it comes up on boot when it should not.

Also happens on RHEL 4 U2 on the same machine.

Version-Release number of selected component (if applicable):
hotplug-2004_09_23-7  udev-058-1.0.FC4.1

How reproducible:
Always

Steps to Reproduce:
1. Boot the machine with stock install and internal wireless
2. Have ifcfg-eth1 with ONBOOT=no
3. netstat -nr
  

Actual Results:  eth1 is up and has the primary gateway.

Expected Results:  eth1 should be down.

Additional info:

If you edit /sbin/ifup and insert the line:

 sleep 5;

Before:

  if [ "foo$2" = "fooboot" ] && [ "${ONBOOT}" = "no" -o "${ONBOOT}" = "NO" ]

It prevents the problem.

Comment 1 Bill Nottingham 2005-12-06 05:43:43 UTC
Hotplug has always ignored ONBOOT - there is HOTPLUG for this.

Comment 2 Leam 2005-12-06 05:51:28 UTC
(In reply to comment #1)
> Hotplug has always ignored ONBOOT - there is HOTPLUG for this.

I'm not sure what you mean...


Comment 3 Bill Nottingham 2005-12-06 05:53:06 UTC
ifup, as run by hotplug, has always ignored the ONBOOT setting. If you set
'HOTPLUG=no', it will not be brought up by hotplug.


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