summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-11 21:42:14 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-11 21:48:58 +0200
commit3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4 (patch)
treed08d1b945a45adadca0a585d7d68cc5a645feae5
parentgen_initramfs.sh: create_initramfs(): Change /etc/ld.so.cache creation (diff)
downloadgenkernel-3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4.tar.gz
genkernel-3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4.tar.bz2
genkernel-3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4.zip
gen_initramfs.sh: create_initramfs(): Disable sandbox for ldconfigv4.0.0_beta12
ldconfig will use chroot(). However, sandbox doesn't understand that and believes we are writing to /etc/ld.so.cache... which is wrong. Bug: https://bugs.gentoo.org/431038 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-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