From: Daan De Meyer Date: Tue, 11 Feb 2025 17:01:17 +0000 (+0100) Subject: Strip --suspend from --debug-shell sandbox X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3496%2Fhead;p=thirdparty%2Fmkosi.git Strip --suspend from --debug-shell sandbox --- diff --git a/mkosi/run.py b/mkosi/run.py index 29f4126f7..928634e36 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -243,7 +243,9 @@ def spawn( log_process_failure(prefix, cmd, returncode) if ARG_DEBUG_SHELL.get(): subprocess.run( - [*prefix, "bash"], + # --suspend will freeze the debug shell with no way to unfreeze it so strip it from the + # sandbox if it's there. + [s for s in prefix if s != "--suspend"] + ["bash"], check=False, stdin=sys.stdin, text=True,