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

Fixes QubesOS/qubes-issues#1255
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-05 06:12:17 +02:00
parent 03f6ddc41a
commit 2bdbf37ef9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 10 additions and 0 deletions

View File

@ -126,6 +126,11 @@ EOF
fi fi
mount /home 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 [ -x /rw/config/rc.local ] && /rw/config/rc.local
success success

View File

@ -16,6 +16,11 @@ else
fi fi
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 # 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 # DispVM (to override DispVM-template IP) and in case when qubes-ip was
# called by udev before loading evtchn kernel module - in which case # called by udev before loading evtchn kernel module - in which case