Guillaume Cottenceau writes: 

> Oden Eriksson <[EMAIL PROTECTED]> writes: 
> 
>> Hi again. 
>> 
>> A while back I was very pleased with the mkinitrd script because it was so 
>> much faster than in Mandrake 7.2, now something has happened to it and 
>> there's suddenly not much difference in execution time. The use of diet libc 
>> speeded up this process a great deal. 
>> 
>> Somewhere in the evolution of mkinitrd it only took a couple of seconds to 
>> make a ramdisk, now it takes at least ten seconds (up to a minute if there's 
>> a softlink to the source...). Why is that?
> 
> Because the "find" is now made by shell globbing which is rather
> slow. 
> 
> I'll have to find a better way to do the "find".

How about this then: 

Make a "mkinitrd diet tools" image containing what you need (find, etc.) and 
put it in eg. /boot/. Mount that image and use the tools from there when 
making the initrd? 

>> I still have the same hardware. 
>> 
>> Is it all in the sh_find function? It seems to scan through the directories 
>> over and over and yet over again. It makes no sence to me...

I put "set -x" in the mkinitrd script, and it seems like it scans thought 
the directiories over and over again... 


 --
Kindest regards // Oden Eriksson
Deserve-IT Networks/HFE Systems 


Reply via email to