Blob Blame History Raw
From 16ac3aa74628ceb63b9cbc995300f9107cd48a0c Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 12 May 2016 16:24:10 +0100
Subject: [PATCH] Revert "appliance: init: run ldconfig"

Running ldconfig adds about 100ms to the boot time.  I would prefer
that we understood which libraries need ldconfig to be run, and fix
that.  We could also consider running ldconfig in parallel, but since
it might be required by just about any binary that the init script
runs it's not clear what benefit that gives.

This reverts commit 66aa98265dd215dcd4c717e7ef6845fbac859e54.

(cherry picked from commit ba8e8d277daba14ea8e33faee7dfb6ddb613bb07)
---
 appliance/init | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/appliance/init b/appliance/init
index b05c0ed..d168b5e 100755
--- a/appliance/init
+++ b/appliance/init
@@ -17,10 +17,6 @@ if [ ! -d /tmp ] || [ ! -d /var/tmp ]; then
     chmod 1777 /tmp /var/tmp
 fi
 
-# Make sure to find all the libraries, also those in non-standard place
-# but with a proper ld.so configuration pointing at them
-ldconfig
-
 # Try to print a stack trace for segfaults inside the appliance.
 for d in /lib64 /lib; do
   f=$d/libSegFault.so
-- 
2.7.4