Bug 110415 - ifup misses valid interfaces in modprobe.conf
Summary: ifup misses valid interfaces in modprobe.conf
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-19 12:52 UTC by Pontus Fuchs
Modified: 2014-03-17 02:40 UTC (History)
1 user (show)

Fixed In Version: 7.44-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-28 06:18:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
A patch for the problem (420 bytes, patch)
2003-11-19 13:07 UTC, Pontus Fuchs
no flags Details | Diff

Description Pontus Fuchs 2003-11-19 12:52:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031030

Description of problem:
My modprobe.conf contains:

install eth1 custom-command-to-setup-interface

but ifup fails to load this module. The problem is in the
is_available function in /etc/sysconfig/network-scripts/network-functions

this function does:

alias=`modprobe -c | awk "/^alias $1 / { print \\$3 }"`

and will not recognice the install directive correctly

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

How reproducible:
Always

Steps to Reproduce:

    

Additional info:

Comment 1 Pontus Fuchs 2003-11-19 13:07:56 UTC
Created attachment 96054 [details]
A patch for the problem

Comment 2 Bill Nottingham 2004-01-28 06:18:06 UTC
Fixed thusly:

@@ -174,8 +174,8 @@
     LC_ALL= LANG= ip -o link | grep -q $1
     [ "$?" = "1" ] || return 0
  
-    alias=`modprobe -c | awk "/^alias $1 / { print \\$3 }"`
-    if [ -z "$alias" -o "$alias" = "off" ]; then
+    alias=`modprobe -c | awk "/^(alias|install) $1 / { print \\$3 }"`
+    if [ -z "$alias" -o "$alias" = "off" -o "$alias" = "/bin/true" ];
then
         return 2
     fi
     HOTPLUG=`cat /proc/sys/kernel/hotplug`


Comment 3 Bill Nottingham 2004-01-28 06:18:26 UTC
Will be in 7.44-1.


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