mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0085-Revert-appliance-init-run-ldconfig.patch

e76f14
From 16ac3aa74628ceb63b9cbc995300f9107cd48a0c Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Thu, 12 May 2016 16:24:10 +0100
e76f14
Subject: [PATCH] Revert "appliance: init: run ldconfig"
e76f14
e76f14
Running ldconfig adds about 100ms to the boot time.  I would prefer
e76f14
that we understood which libraries need ldconfig to be run, and fix
e76f14
that.  We could also consider running ldconfig in parallel, but since
e76f14
it might be required by just about any binary that the init script
e76f14
runs it's not clear what benefit that gives.
e76f14
e76f14
This reverts commit 66aa98265dd215dcd4c717e7ef6845fbac859e54.
e76f14
e76f14
(cherry picked from commit ba8e8d277daba14ea8e33faee7dfb6ddb613bb07)
e76f14
---
e76f14
 appliance/init | 4 ----
e76f14
 1 file changed, 4 deletions(-)
e76f14
e76f14
diff --git a/appliance/init b/appliance/init
e76f14
index b05c0ed..d168b5e 100755
e76f14
--- a/appliance/init
e76f14
+++ b/appliance/init
e76f14
@@ -17,10 +17,6 @@ if [ ! -d /tmp ] || [ ! -d /var/tmp ]; then
e76f14
     chmod 1777 /tmp /var/tmp
e76f14
 fi
e76f14
 
e76f14
-# Make sure to find all the libraries, also those in non-standard place
e76f14
-# but with a proper ld.so configuration pointing at them
e76f14
-ldconfig
e76f14
-
e76f14
 # Try to print a stack trace for segfaults inside the appliance.
e76f14
 for d in /lib64 /lib; do
e76f14
   f=$d/libSegFault.so
e76f14
-- 
e76f14
1.8.3.1
e76f14