diff mbox series

systemd: add a packageconfig to support colored logs

Message ID 20230806061134.52225-1-f_l_k@t-online.de
State Accepted, archived
Commit 2e9b41b23695bb3517ad33ccb02ae19ca30326c6
Headers show
Series systemd: add a packageconfig to support colored logs | expand

Commit Message

Markus Volk Aug. 6, 2023, 6:11 a.m. UTC
journald uses less to display logs. less.busybox can do the
job, but it rips out support for color/highlighting.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-core/systemd/systemd_253.7.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd_253.7.bb b/meta/recipes-core/systemd/systemd_253.7.bb
index 1fd4556afd..bb3afc1e73 100644
--- a/meta/recipes-core/systemd/systemd_253.7.bb
+++ b/meta/recipes-core/systemd/systemd_253.7.bb
@@ -158,6 +158,7 @@  PACKAGECONFIG[ima] = "-Dima=true,-Dima=false"
 PACKAGECONFIG[importd] = "-Dimportd=true,-Dimportd=false,glib-2.0"
 # Update NAT firewall rules
 PACKAGECONFIG[iptc] = "-Dlibiptc=true,-Dlibiptc=false,iptables"
+PACKAGECONFIG[journal-color] = ",,,less"
 PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl"
 PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod"
 PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig"