From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41A38138334 for ; Sun, 11 Aug 2019 19:55:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C1BEE083D; Sun, 11 Aug 2019 19:55:39 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 66A54E083D for ; Sun, 11 Aug 2019 19:55:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F6483498D5 for ; Sun, 11 Aug 2019 19:55:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE9E575C for ; Sun, 11 Aug 2019 19:55:36 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1565552938.3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4 X-VCS-Branch: master Date: Sun, 11 Aug 2019 19:55:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9f35687f-0693-4e3d-a984-ddffcb445f81 X-Archives-Hash: 38d9c1898043c92cc24214ec4bb2708d commit: 3e9ffa310cfcbadbe5c17160e72f0ff86feed8e4 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Aug 11 19:42:14 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Aug 11 19:48:58 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3e9ffa31 gen_initramfs.sh: create_initramfs(): Disable sandbox for ldconfig 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 gentoo.org> gen_initramfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index c5e4a67..23ed9dc 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