]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
base-files: profile: allow profile.d to set EDITOR
authorJohannes Schneider <johannes.schneider@leica-geosystems.com>
Fri, 13 Oct 2023 10:27:34 +0000 (10:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Oct 2023 12:38:54 +0000 (13:38 +0100)
commitdcdb30c83eb77fb2d5ea04f9b7fd7371da633a34
tree8afe8377d324dc7b54f29f8610babfcc0e7cd34e
parent0151bba91387559852c27e044d6e58c3a53d26d5
base-files: profile: allow profile.d to set EDITOR

With a profile.d configuration in place that sets the EDITOR variable,
the automatic terminal 'resize' logic would not trigger. Which then
would possibly lead to a 80x24 fallback on the debug serial console.

This can simply be avoided by setting a flag variable when the shell
is first opened, then processing all profile.d includes, trigger the
'resize' depending on the flag and shell-level and finally only set
EDITOR to some default if it is still unset.

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-core/base-files/base-files/profile