[Libguestfs] [PATCH] appliance: init: run ldconfig

Richard W.M. Jones rjones at redhat.com
Tue Jul 15 08:50:24 UTC 2014


On Mon, Jul 14, 2014 at 11:29:52AM +0200, Pino Toscano wrote:
> Run ldconfig early in the init script, so libraries outside standard
> library paths but with a proper ld.so configuration file pointing at
> them can be found.
[...]

Yes, I have hit a problem where ldconfig was needed.

> +# Make sure to find all the libraries, also those in non-standard place
> +# but with a proper ld.so configuration pointing at them
> +ldconfig || :

You don't need ||: in this script.

How much time does this add to the start of the appliance?  ie.
if you run

  time ./run guestfish -a /dev/null run

before and after what is the difference?

ACK in principle.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list