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 B3388138350 for ; Tue, 7 Apr 2020 23:03:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6378E0938; Tue, 7 Apr 2020 23:03:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 CD630E0938 for ; Tue, 7 Apr 2020 23:03:24 +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 94D1A34F0AB for ; Tue, 7 Apr 2020 23:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10E211C5 for ; Tue, 7 Apr 2020 23:03:22 +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: <1586300397.c0e013c9770eca18ea6fc68c87709d6fc6b1dc41.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_determineargs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c0e013c9770eca18ea6fc68c87709d6fc6b1dc41 X-VCS-Branch: master Date: Tue, 7 Apr 2020 23:03:22 +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: a5fcf222-9fba-4b95-8155-d3b6875faefc X-Archives-Hash: fbc63bc9e2b52ca19751fde6b0868c80 commit: c0e013c9770eca18ea6fc68c87709d6fc6b1dc41 Author: Thomas Deutschmann gentoo org> AuthorDate: Tue Apr 7 22:56:13 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Tue Apr 7 22:59:57 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c0e013c9 gen_determineargs.sh: determine_real_args(): Error out early when already running within a sandbox We cannot spawn a sandbox when we are already running within a sandbox. This commit will make genkernel error out early to tell user about the problem. Signed-off-by: Thomas Deutschmann gentoo.org> gen_determineargs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 6c5d01c..95ec402 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -1012,6 +1012,11 @@ determine_real_args() { SANDBOX_COMMAND= if isTrue "${SANDBOX}" then + if [ ${SANDBOX_ON} -eq 1 ] + then + gen_die "SANDBOX_ON=1 detected -- You cannot use --sandbox when already running within a sandbox!" + fi + SANDBOX_COMMAND="$(which sandbox 2>/dev/null)" if [ -z "${SANDBOX_COMMAND}" ] then