]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd: Fix systemd when used with busybox less
authorAlban Bedel <alban.bedel@aerq.com>
Thu, 16 Mar 2023 12:51:11 +0000 (13:51 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 21 Mar 2023 02:38:51 +0000 (16:38 -1000)
commit06271fd8d26bc34448524157077c23eb1ea29c52
tree4290c05cc7537e49ce2618481599fc7ef91d9384
parente630b404b1d1797be5e915592a6ef71e34aaf680
systemd: Fix systemd when used with busybox less

Per default systemd use a pager for the output of most of its tools
and it expect this pager to be color capable. But that is not the case
when the busybox `less` is used, which lead to output garbled by color
escape sequences.

To fix this issue add a profile frament that disable the systemd pager
when busybox `less` is detected.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit de7e36a7858ebca4615975967fcad1c399eacdb0)
Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/systemd/systemd/systemd-pager.sh [new file with mode: 0644]
meta/recipes-core/systemd/systemd_244.5.bb