[oe] [oe-commits] Koen Kooi : initscripts: only run ldconfig on boot when ld.so. conf is present

Koen Kooi k.kooi at student.utwente.nl
Fri Oct 31 15:55:50 UTC 2008


On 31-10-2008 13:37, Carsten Haitzler (The Rasterman) wrote:
> On Fri, 31 Oct 2008 12:00:45 +0100 (CET) git at amethyst.openembedded.net (GIT
> User account) babbled:
>
> is there any reason to run ldconfig on boot? this should be handled by opkg on
> package install/upgrade or by the flash image creation (this slows boot
> significantly and i've patched out/disabled ldconfig run in bootmisc.sh with no
> ill effects).

Not all images have a package management tool inside, so depending on 
that is a no-go. Recently OE stopped shipping ld.so.conf so the ldconfig 
on boot won't get run. Doing it this way seemed to me the safest way to 
get a nice speedup and keep things working for the funky people needing 
ld.so.conf without a package manager :)

regards,

Koen


>
>> Module: openembedded.git
>> Branch: org.openembedded.dev
>> Commit: 6628886e858d77a8f9f94dd3229143e144d39f0e
>> URL:
>> http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6628886e858d77a8f9f94dd3229143e144d39f0e
>>
>> Author: Koen Kooi<koen at openembedded.org>
>> Date:   Fri Oct 31 11:57:54 2008 +0100
>>
>> initscripts: only run ldconfig on boot when ld.so.conf is present
>>
>> ---
>>
>>   packages/initscripts/initscripts-1.0/bootmisc.sh |    6 ++++--
>>   packages/initscripts/initscripts_1.0.bb          |    2 +-
>>   2 files changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/packages/initscripts/initscripts-1.0/bootmisc.sh
>> b/packages/initscripts/initscripts-1.0/bootmisc.sh index 2a40e0c..dde1209
>> 100755
>> --- a/packages/initscripts/initscripts-1.0/bootmisc.sh
>> +++ b/packages/initscripts/initscripts-1.0/bootmisc.sh
>> @@ -57,9 +57,11 @@ then
>>   fi
>>
>>   #
>> -# Update dynamic library cache
>> +# Update dynamic library cache, but only if ld.so.conf is present
>>   #
>> -/sbin/ldconfig
>> +if [ -e /etc/ld.so.conf ] ; then
>> +	/sbin/ldconfig
>> +fi
>>
>>   # Set the system clock from hardware clock
>>   # If the timestamp is 1 day or more recent than the current time,
>> diff --git a/packages/initscripts/initscripts_1.0.bb
>> b/packages/initscripts/initscripts_1.0.bb index b1c4317..8daefc5 100644
>> --- a/packages/initscripts/initscripts_1.0.bb
>> +++ b/packages/initscripts/initscripts_1.0.bb
>> @@ -4,7 +4,7 @@ PRIORITY = "required"
>>   DEPENDS = "makedevs"
>>   RDEPENDS = "makedevs"
>>   LICENSE = "GPL"
>> -PR = "r109"
>> +PR = "r110"
>>
>>   SRC_URI = "file://functions \
>>              file://halt \
>>
>>
>> _______________________________________________
>> Openembedded-commits mailing list
>> Openembedded-commits at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits
>>
>
>






More information about the Openembedded-devel mailing list