]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
box: Drop background tinting
authorDaan De Meyer <daan@amutable.com>
Thu, 14 May 2026 08:17:01 +0000 (08:17 +0000)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 15 May 2026 06:47:21 +0000 (08:47 +0200)
Now that we have $SHELL_PROMPT_PREFIX integration,
let's drop the background tinting. Especially since it
doesn't quite nest all that well yet and we often invoke
nspawn and such from within mkosi box which does its own
background tinting.

mkosi/__init__.py

index 2ff6a24a8768719a80ce7faa361b062623615545..15affd267986314111da67a2ff2844a67b0f711b 100644 (file)
@@ -80,7 +80,6 @@ from mkosi.config import (
     parse_config,
     resolve_deps,
     summary,
-    systemd_pty_forward,
     systemd_tool_version,
     want_kernel,
     want_selinux_relabel,
@@ -4250,9 +4249,6 @@ def run_box(args: Args, config: Config) -> None:
 
     cmdline = [*args.cmdline]
 
-    if sys.stdin.isatty() and sys.stdout.isatty():
-        cmdline = systemd_pty_forward(config, background="48;2;12;51;51", title="mkosi-sandbox") + cmdline
-
     with contextlib.ExitStack() as stack:
         if config.tools() != Path("/"):
             d = stack.enter_context(tempfile.TemporaryDirectory(prefix="mkosi-path-"))