From 0bb29ddfbf167a791712e50cdbb9b68587161d87 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 11 Feb 2025 18:01:17 +0100 Subject: [PATCH] Strip --suspend from --debug-shell sandbox --- mkosi/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.47.2