This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 81194 - support of older kernels is broken in kernel-pcmcia-cs-3.1.31-11
support of older kernels is broken in kernel-pcmcia-cs-3.1.31-11
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: kernel-pcmcia-cs (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-06 13:07 EST by Leonid Kanter
Modified: 2015-01-04 17:02 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-11-25 02:24:56 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Leonid Kanter 2003-01-06 13:07:37 EST
Description of problem:

Because usb hotplug is broken in phoebe, I tried to use older kernel with it
(2.4.18-18.8) and found that there is a bug in pcmcia start script

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

kernel-pcmcia-cs-3.1.31-11

How reproducible:

always

Steps to Reproduce:
1.install phoebe on laptop, install kernel-2.4.18-18.8
2.configure pcmcia, run service pcmcia start
    
Actual results:

Starting PCMCIA services: modulesmodprobe: Can't locate module
/lib/modules/2.4.18-18.8/pcmcia/pcmcia_core.o
modprobe: Can't locate module /lib/modules/2.4.18-18.8/pcmcia/yenta_socket.o
modprobe: Can't locate module /lib/modules/2.4.18-18.8/pcmcia/ds.o

Expected results:

must start silently

Additional info:

modprobe cannot be called with full module path, insmod must be used here. This
patch fixes problem and do not brake new kernel (2.4.20-2.2) support.

--- /etc/rc.d/init.d/pcmcia.orig        Sun Jan  5 20:26:24 2003
+++ /etc/rc.d/init.d/pcmcia     Sun Jan  5 20:26:53 2003
@@ -104,9 +104,9 @@
            KD=/lib/modules/`uname -r`/kernel/drivers/pcmcia
            if [ -d $PC ] ; then
                echo -n " modules"
-               /sbin/modprobe $PC/pcmcia_core.o $CORE_OPTS
-               /sbin/modprobe $PC/$PCIC.o $PCIC_OPTS
-               /sbin/modprobe $PC/ds.o
+               /sbin/insmod $PC/pcmcia_core.o $CORE_OPTS
+               /sbin/insmod $PC/$PCIC.o $PCIC_OPTS
+               /sbin/insmod $PC/ds.o
            elif [ -d $KD ] ; then
                /sbin/modprobe pcmcia_core
                /sbin/modprobe $PCIC
Comment 1 Arjan van de Ven 2003-01-06 18:29:48 EST
thanks for the report!
I've changed it to keep using modprobe but without the directory
should work just as well (and the modutils maintainer asked me to make it never
use modprobe ever)
Comment 2 Leonid Kanter 2003-01-07 11:42:12 EST
Did you mean "never use _insmod_ ever"?

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