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

Carsten Haitzler (The Rasterman) raster at rasterman.com
Sun Nov 2 06:37:17 UTC 2008


On Sun, 02 Nov 2008 00:51:09 -0400 Denys Dmytriyenko <denis at denix.org> babbled:

> On Sun, Nov 02, 2008 at 10:08:19AM +1100, Carsten Haitzler wrote:
> > at some point when oe was building images, it was unable to run ldconfig
> > using qemu natively within the rootfs before converting to a file system
> > image (ext2, jffs2, or tar etc.) and thus as a workaround to not being able
> > to do this, it was run on boot to populate ld.so.cache. it's possible to do
> > this now via qemu before packaging up the rootfs.
> > 
> > ooh wait. i found out...
> > 
> > /var/run/ld.so.cache... it's in /var/run ... which is /var/volatile - which
> > is ramfs. which means it's not persistent. this... is a problem. well a
> > problem for systems that can do persistent storage and modify the fs
> > runtime (and keep the changes - ie anything using jffs2).
> > 
> > perhaps.. this is what needs changing - distros that have non-writable
> > rootfs's use ldconfig on boot (makes sense now) and those with, do it at
> > image creating time with qemu (and henceforth let the package manager
> > handle it).
> 
> I personally wouldn't want to rely on qemu for this. I'm trying to avoid it 
> for my setups so I wouldn't need to deal with its weirdness and support my 
> developers. And currently I only had to disable locales generation to achive 
> that peace of mind...

ld.so.cache doesn't NEED to be generated before packing the image together - it
works quite happily without it... :) so same would apply here.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com





More information about the Openembedded-devel mailing list