Found a bug in the RH5.1 /etc/rc.d/rc.sysinit file.

It is exercised when you compile your own kernel and reboot.  The
problem is that depmod does not get run due to a typo in this file.
Note that it checks for the existence of the "preferred" symlink, but
then does the same thing regardless.  The fix is to change the "else"
statement to a simple

        else 
                depmod -a
        fi

Here's the offending snippet:

------------- from /etc/rc.d/rc.sysinit --------------------------
if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
    # Get ready for kerneld if module support in the kernel
    echo -n "Finding module dependencies... "
    if [ -f /lib/modules/preferred ]; then
        depmod -a preferred
    else
        depmod -a preferred
    fi
    echo "done"
fi
------------- from /etc/rc.d/rc.sysinit --------------------------

-- 
       Alec Habig, Boston University Particle Astrophysics Group
                           [EMAIL PROTECTED]
                       http://hep.bu.edu/~habig/


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to