diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-04-08 00:56:13 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-04-08 00:59:57 +0200 |
commit | c0e013c9770eca18ea6fc68c87709d6fc6b1dc41 (patch) | |
tree | 6be8640e16c3fe2715e7359de3b965d00979edd6 | |
parent | Bump LVM2 to v2.02.187 (diff) | |
download | genkernel-c0e013c9770eca18ea6fc68c87709d6fc6b1dc41.tar.gz genkernel-c0e013c9770eca18ea6fc68c87709d6fc6b1dc41.tar.bz2 genkernel-c0e013c9770eca18ea6fc68c87709d6fc6b1dc41.zip |
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 <whissi@gentoo.org>
-rwxr-xr-x | gen_determineargs.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |