Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9632 - update-modules fails if there is a subdirectory in /etc/modules.d
Summary: update-modules fails if there is a subdirectory in /etc/modules.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 20:44 UTC by Benjamin Ritcey
Modified: 2002-10-25 18:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Ritcey 2002-10-24 20:44:21 UTC
update-modules fails if there is a subdirectory in /etc/modules.d, causing
module loading to fail.  In particular, if you're using RCS to track config
changes (you are, aren't you? =), the RCS subdirectory will make it choke.

Here's a simple patch to ignore subdirectories (the implicit behavior now):


--- update-modules      2002-10-24 17:39:10.000000000 -0400
+++ update-modules.orig 2002-10-24 17:37:35.000000000 -0400
@@ -67,9 +67,6 @@
 
 for cfg in ${MODDIR}/* ${CONF}
 do
-       ## ignore subdirectories, like 'RCS'
-       [ -d ${cfg} ] && continue
-
        [ ! -r ${cfg} ] && continue
 
        echo "### update-modules: start processing ${cfg}" >> ${TMPFILE}
Comment 1 Benjamin Ritcey 2002-10-25 11:43:06 UTC
Whoops;  I have the nature of the patch reversed -- add those lines, don't
remove them =)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-25 18:48:25 UTC
Fixed on CVS, thanks.