Browse Source

Run 'ldconfig' to update /usr/local/lib* cache, if applicable

Fixes QubesOS/qubes-issues#1255
Marek Marczykowski-Górecki 8 years ago
parent
commit
2bdbf37ef9
2 changed files with 10 additions and 0 deletions
  1. 5 0
      vm-init.d/qubes-core
  2. 5 0
      vm-systemd/misc-post.sh

+ 5 - 0
vm-init.d/qubes-core

@@ -126,6 +126,11 @@ EOF
     fi
     mount /home
 
+    if [ -n "`ls -A /usr/local/lib 2>/dev/null`" -o \
+         -n "`ls -A /usr/local/lib64 2>/dev/null`" ]; then
+        ldconfig
+    fi
+
 	[ -x /rw/config/rc.local ] && /rw/config/rc.local
 
 	success

+ 5 - 0
vm-systemd/misc-post.sh

@@ -16,6 +16,11 @@ else
     fi
 fi
 
+if [ -n "`ls -A /usr/local/lib 2>/dev/null`" -o \
+     -n "`ls -A /usr/local/lib64 2>/dev/null`" ]; then
+    ldconfig
+fi
+
 # Set IP address again (besides action in udev rules); this is needed by
 # DispVM (to override DispVM-template IP) and in case when qubes-ip was
 # called by udev before loading evtchn kernel module - in which case