Skip to content

Commit

Permalink
overlay/05core: Set systemd LogColor=false
Browse files Browse the repository at this point in the history
We deploy on servers.  The ANSI colors codes in the console
output often end up in e.g. log files where they both
make the logs hard to read *and* they make log files
invalid UTF-8.

This file needs to be created in both the real root and
the initramfs, so extend our `99journald-conf` to be
`99systemd-conf`.
  • Loading branch information
cgwalters committed Jun 29, 2021
1 parent 1c0ca68 commit 05c53d2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# We deploy on servers. The ANSI colors codes in the console
# output often end up in e.g. log files where they both
# make the logs hard to read *and* they make log files
# invalid UTF-8.
[Manager]
LogColor=false
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# Configuration for systemd in the initramfs.
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

Expand All @@ -7,6 +8,8 @@ depends() {
}

install() {
inst_simple "$moddir/10-coreos-nocolor.conf" \
"/etc/systemd/system.conf.d/00-coreos-nocolor.conf"
inst_simple "$moddir/00-journal-log-forwarding.conf" \
"/etc/systemd/journald.conf.d/00-journal-log-forwarding.conf"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# We deploy on servers. The ANSI colors codes in the console
# output often end up in e.g. log files where they both
# make the logs hard to read *and* they make log files
# invalid UTF-8.
[Manager]
LogColor=false

0 comments on commit 05c53d2

Please sign in to comment.