Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
busybox: enable less options for systemd
Browse files Browse the repository at this point in the history
There are a number of options that make busybox-less work better
with systemd's pager expectations.  Add them in.

Also, add in a few options for usability.

Signed-off-by: Patrick Williams <[email protected]>
Change-Id: I54f16543e903be1db247cfb85181dd415e048884
  • Loading branch information
williamspatrick authored and bradbishop committed Jan 4, 2021
1 parent 2c71ff5 commit 70fd776
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes-core/busybox/busybox/less.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## In orer to make systemd-pager work well there are a number of busybox less
## features we need to enable.
CONFIG_FEATURE_LESS_DASHCMD=y
CONFIG_FEATURE_LESS_RAW=y
CONFIG_FEATURE_LESS_ENV=y

## These are nice features for users.
CONFIG_FEATURE_LESS_WINCH=y
CONFIG_FEATURE_LESS_ASK_TERMINAL=y
CONFIG_FEATURE_LESS_REGEXP=y
1 change: 1 addition & 0 deletions recipes-core/busybox/busybox_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://busybox.cfg"
SRC_URI += "file://flash.cfg"
SRC_URI += "file://less.cfg"
SRC_URI += "file://mountpoint.cfg"
SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', '', 'file://reboot.cfg', d)}"

0 comments on commit 70fd776

Please sign in to comment.