Skip to content

Start the shell at tty8 as login shell#3354

Merged
lslezak merged 2 commits intomasterfrom
bash-login
Apr 1, 2026
Merged

Start the shell at tty8 as login shell#3354
lslezak merged 2 commits intomasterfrom
bash-login

Conversation

@lslezak
Copy link
Copy Markdown
Contributor

@lslezak lslezak commented Apr 1, 2026

Problem

  • The root shell running at tty8 does not set some default environment values like $PAGER.

Solution

  • Start the shell as login shell to load the /etc/profile file
  • That sets $PAGER to less and allows displaying ANSI colors, enable line wrapping by setting the $LESS options

Testing

  • Tested manually

Copy link
Copy Markdown
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lslezak lslezak merged commit 9e1db2d into master Apr 1, 2026
11 checks passed
@lslezak lslezak deleted the bash-login branch April 1, 2026 15:07
@imobachgs imobachgs mentioned this pull request Apr 14, 2026
imobachgs added a commit that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants