On Fri, 2003-10-31 at 15:32, T. Ribbrock wrote:
> Hi all,
> 
> I'm just after installing MDK 9.1 on my Libretto 110CT laptop (went
> mostly smoothly - chalk one up for Mandrake) and noticed a little
> problem: Upon boot, the "Finding module dependencies" step takes ages
> (i.e. about 1.5min(!)). Same goes for running "depmod -a" manually
> from the prompt. Now, I know the Libby is no speed demon with its
> PI/233MMX, but it should be faster than this. In fact, under the
> previously installed RHL 7.3, that part *was* faster.
> 
> I can not find any error messages in either dmesg or
> /var/log/messages, so at the moment, I have no idea why this is
> happening - any suggestions welcome!
> 
> Cheerio,
> 
> Thomas

Thomas as to why it takes to long now.  There has been a lot of new
hardware added since the 7.3 days and MDK has compiled every single one
of those modules in.  

You can do one of two things.  go into sysinit and comment out where it
does depmod.  (this can be dangerous if hardware changes and you don't
do depmod -a on your own first.)

Second option which has worked on my laptop is to edit /etc/rc.sysinit
and do this.
find the section that looks like this.

    if [ -L /lib/modules/default ]; then
       INITLOG_ARGS= action "Finding module dependencies: " depmod -A
default
    else
       INITLOG_ARGS= action "Finding module dependencies: " depmod -A
    fi


and make it look like this

    if [ -L /lib/modules/default ]; then
#       INITLOG_ARGS= action "Finding module dependencies: " depmod -A
default
        KRN=`uname -r`;if (( `find /lib/modules/$KRN/ -cnewer \
        /lib/modules/$KRN/modules.dep | wc -l` != 0 )); then depmod -A
default; fi
    else
#       INITLOG_ARGS= action "Finding module dependencies: " depmod -A
        KRN=`uname -r`;if (( `find /lib/modules/$KRN/ -cnewer \
        /lib/modules/$KRN/modules.dep | wc -l` != 0 )); then depmod -A;
fi
    fi

(Note: I commented out the old lines ... just in case.)

What this does is look at depmod's output file and if it's current skip
doing depmod -a for that boot.  I got this off of a forum in the club
and would like to give credit to the author but danged if I can find it
again.  End result is ... this has worked well for me so far.  With a
desktop where you change HW a lot maybe not such a good idea but on
something like a laptop, where hardware never changes.. why not?  

James




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to