init: Don't set LD_LIBRARY_PATH, run ldconfig with paths instead.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 9 Aug 2016 16:28:58 +0000 (17:28 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 9 Aug 2016 16:28:58 +0000 (17:28 +0100)
init.sh

diff --git a/init.sh b/init.sh
index 7dbb8fd..e7968b7 100755 (executable)
--- a/init.sh
+++ b/init.sh
@@ -1,9 +1,6 @@
 #!/bin/bash -
 # Init script installed in stage3 disk image.
 
-LD_LIBRARY_PATH=/usr/lib64
-export LD_LIBRARY_PATH
-
 # Root filesystem is mounted as ro, remount it as rw.
 mount.static -o remount,rw /
 
@@ -16,7 +13,7 @@ mkdir -p /run/lock
 # XXX devtmpfs
 
 # Initialize dynamic linker cache.
-ldconfig
+ldconfig /usr/lib64 /usr/lib /lib64 /lib
 
 echo
 echo "Welcome to the Fedora/RISC-V stage3 disk image"