Bug 144343

Summary: Kudzu does not restore the hotplug path if /etc/sysconfig/network-scripts is not found
Product: [Fedora] Fedora Reporter: Daniel de Kok <danieldk>
Component: kudzuAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.107-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-06 17:53:29 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 Daniel de Kok 2005-01-06 08:30:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041219 Firefox/1.0 (Debian package 1.0+dfsg.1-1)

Description of problem:
Kudzu does not do a twiddleHotplug(1) if
/etc/sysconfig/network-scripts is not found, leaving
/proc/sys/kernel/hotplug set to /bin/true on distributions that do not
have /etc/sysconfig/network-scripts.

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


How reproducible:
Always

Steps to Reproduce:
1. cat /proc/sys/kernel/hotplug 
2. kudzu -c NETWORK -p -t 40
3. cat /proc/sys/kernel/hotplug 

Actual Results:
# cat /proc/sys/kernel/hotplug 
/sbin/hotplug
# kudzu -c NETWORK -p -t 40
# cat /proc/sys/kernel/hotplug 
/bin/true


Expected Results:
# cat /proc/sys/kernel/hotplug 
/sbin/hotplug
# kudzu -c NETWORK -p -t 40
# cat /proc/sys/kernel/hotplug 
/sbin/hotplug

Additional info:

This diff should fix it:

--- kudzu.c.orig        2005-01-06 09:11:01.000000000 +0100
+++ kudzu.c     2005-01-06 09:11:21.000000000 +0100
@@ -1008,6 +1008,7 @@
  #ifndef __LOADER__
        if ((ncfgs = scandir("/etc/sysconfig/network-scripts",&cfgs,
                             isCfg, alphasort)) < 0) {
+               twiddleHotplug(1);
                return;
        }
        cf = readConfModules(module_file);

Comment 1 Bill Nottingham 2005-01-06 17:53:29 UTC
Added to all the appropriate branches, will be in future builds. Thanks!

Comment 2 Tim Powers 2005-06-09 12:52:19 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-126.html