From 2bdbf37ef93d8bf9727507a11101d57e3709d3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 5 Oct 2015 06:12:17 +0200 Subject: [PATCH] Run 'ldconfig' to update /usr/local/lib* cache, if applicable Fixes QubesOS/qubes-issues#1255 --- vm-init.d/qubes-core | 5 +++++ vm-systemd/misc-post.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/vm-init.d/qubes-core b/vm-init.d/qubes-core index 06c9159..5ea8d0f 100755 --- a/vm-init.d/qubes-core +++ b/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 diff --git a/vm-systemd/misc-post.sh b/vm-systemd/misc-post.sh index 11ef88d..4f5925f 100755 --- a/vm-systemd/misc-post.sh +++ b/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