Skip to content

service: add optional controlling TTY via tty: stanza#488

Open
Ollie-Gutierrez wants to merge 4 commits intofinit-project:masterfrom
Ollie-Gutierrez:ctty-support
Open

service: add optional controlling TTY via tty: stanza#488
Ollie-Gutierrez wants to merge 4 commits intofinit-project:masterfrom
Ollie-Gutierrez:ctty-support

Conversation

@Ollie-Gutierrez
Copy link
Copy Markdown

Adds a tty:<dev> keyword for run/task/service stanzas to give them a controlling terminal. I decided to separate this from the prepare_tty helper as that prepares some extra stuff for getty/login which I don’t think we need here, though I’d be interested what you think regarding that. I also tried to keep compatibility with log:. Everything works in my tests and I’ll look into writing some short documentation if you’re happy with everything!

I based this on a poc by @aanderse, which initially just reused prepare_tty. This also addresses finix-community/finix#53.

Copy link
Copy Markdown
Collaborator

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Some minor comments only, other than that it looks good! 💪 Looking forward to getting this merged, with docs 😊

Comment thread src/service.c
Comment thread src/service.c
@Ollie-Gutierrez
Copy link
Copy Markdown
Author

I've addressed both your comments, and also added some documentation and a section on the man page. I put the docs in tty.md, but happy to move it elsewhere if you'd prefer or just make it inline. Thankyou so much for your help too!

@aanderse
Copy link
Copy Markdown
Contributor

can you please update the luks example from https://finit-project.github.io/switchroot/?h=switch#example-initramfs-finitconf?

@Ollie-Gutierrez
Copy link
Copy Markdown
Author

Done, can't believe I forgot that considering it's the main reason for the pr

Copy link
Copy Markdown
Collaborator

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Very nice work on this! As a final touch, please squash the code and doc commits (so we get one for code and one for docs) then we can merge! 😃

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.

3 participants