summaryrefslogtreecommitdiffstats
path: root/src/vmspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-02 17:07:51 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-05-02 23:33:39 +0200
commitd4ffb37bb1a224f0896d86a8a85d9c3924bc0854 (patch)
treefb31fd62a81ac7123c87475097ace7bb56833ca3 /src/vmspawn
parentjournal: explicitly sync namespaced journals before stopping socket units (diff)
downloadsystemd-d4ffb37bb1a224f0896d86a8a85d9c3924bc0854.tar.xz
systemd-d4ffb37bb1a224f0896d86a8a85d9c3924bc0854.zip
nspawn, vmspawn, run0: add env var for turning off background tinting
Some people are just sad, sad lost souls who don't like even the tiniest ray of color in their life. Let's add an env var knob for allowing them to turn the background tinting off, to drive the last bit of color from their life so that they can stay in their grey grey life.
Diffstat (limited to 'src/vmspawn')
-rw-r--r--src/vmspawn/vmspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c
index 9366ce111d..3279d147e0 100644
--- a/src/vmspawn/vmspawn.c
+++ b/src/vmspawn/vmspawn.c
@@ -1977,7 +1977,7 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
if (r < 0)
return log_error_errno(r, "Failed to create PTY forwarder: %m");
- if (!arg_background) {
+ if (!arg_background && shall_tint_background()) {
_cleanup_free_ char *bg = NULL;
r = terminal_tint_color(130 /* green */, &bg);