Skip to content

lchroot: allow to be run without tty#2

Open
guusbertens wants to merge 1 commit into
clustervision:mainfrom
guusbertens:lchroot-fix-notty
Open

lchroot: allow to be run without tty#2
guusbertens wants to merge 1 commit into
clustervision:mainfrom
guusbertens:lchroot-fix-notty

Conversation

@guusbertens

Copy link
Copy Markdown

lchroot uses bash's set -e, which does not allow commands to fail. lchroot then uses tty to get the TTY name mostly for informational purposes. However, tty fails if there is no tty, for instance when running from cron. Allow tty to fail.

lchroot uses bash's `set -e`, which does not allow commands to fail.
lchroot then uses `tty` to get the TTY name mostly for informational
purposes.  However, `tty` fails if there is no tty, for instance when
running from cron.  Allow `tty` to fail.
@guusbertens guusbertens marked this pull request as draft April 20, 2026 11:55
@guusbertens guusbertens marked this pull request as ready for review April 20, 2026 11:58
@guusbertens

Copy link
Copy Markdown
Author

@aphmschonewille Would you be interested in taking this PR? And for the future, how should I get PRs to your attention?

@guusbertens

Copy link
Copy Markdown
Author

@sumit42876 @aphmschonewille Have you had time to look at my previous comment? I'm looking forward to hearing from you.

@aphmschonewille

Copy link
Copy Markdown
Member

Hi Guus,

For stupid reasons i've missed your PR. Let me have a look at it

-Antoine

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