init: Run ldconfig
[fedora-riscv.git] / init.sh
diff --git a/init.sh b/init.sh
index 37ea1b5..267ae74 100755 (executable)
--- a/init.sh
+++ b/init.sh
@@ -1,6 +1,9 @@
 #!/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 -o remount,rw /
 
@@ -12,6 +15,9 @@ mkdir -p /run/lock
 
 # XXX devtmpfs
 
+# Initialize dynamic linker cache.
+ldconfig
+
 echo
 echo "Welcome to the Fedora/RISC-V stage3 disk image"
 echo "https://fedoraproject.org/wiki/Architectures/RISC-V"