summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgen_initramfs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index c5e4a67f..23ed9dcb 100755
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -1608,7 +1608,8 @@ create_initramfs() {
# We can generate or update /etc/ld.so.cache which was copied from host
# to actually match initramfs' content.
print_info 1 "$(get_indent 1)>> Pre-generating initramfs' /etc/ld.so.cache ..."
- ldconfig -f /etc/ld.so.conf -r "${TDIR}" 2>/dev/null \
+ # Need to disable sandbox which doesn't understand chroot(), bug #431038
+ SANDBOX_ON=0 ldconfig -f /etc/ld.so.conf -r "${TDIR}" 2>/dev/null \
|| gen_die "Failed to pre-generate '${TDIR}/etc/ld.so.cache'!"
fi