Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlay/05core: Set systemd LogColor=false #1079

Open
wants to merge 2 commits into
base: testing-devel
Choose a base branch
from

Commits on Jun 29, 2021

  1. overlay/05core: Set systemd LogColor=false

    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`.
    cgwalters committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    05c53d2 View commit details
    Browse the repository at this point in the history
  2. overlay/99emergency-timeout: Set SYSTEMD_COLORS=0 for journalctl

    Also suppress colors here since `journalctl` defaults to coloring
    if it thinks it can, and the way we're explicitly forwarding
    the journal bypasses the logic for systemd's default console
    coloring that we inject via default config.
    
    (Long term, I think it would make sense probably to move
     this "failed in the initramfs" handling into systemd itself and
     not be in custom shell script we carry)
    cgwalters committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    c961c56 View commit details
    Browse the repository at this point in the history