Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commands: Set nspawn console mode to pipe #479

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Feb 6, 2024

Currently the default nspawn console mode for nspawn is interactive which means that /dev/console is created inside the nspawn container and the command can assume it is running in an interactive session.

With console mode set to pipe, nspawn doesn't create /dev/console inside the container and scripts assume they are running in an interactive environment

This has the benefit of forcing some commands (e.g. apt) to not show things like progress bars which only work in interactive terminals.

Fixes: #411
Fixes: #416

Currently the default nspawn console mode for nspawn is interactive which
means that /dev/console is created inside the nspawn container and the
command can assume it is running in an interactive session.

With console mode set to pipe, nspawn doesn't create /dev/console inside
the container and scripts assume they are running in an interactive
environment

This has the benefit of forcing some commands (e.g. apt) to not show things
like progress bars which only work in interactive terminals.

Fixes: #411
Fixes: #416
Signed-off-by: Christopher Obbard <[email protected]>
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Feb 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 8, 2024
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Feb 26, 2024
Merged via the queue into main with commit dfd4815 Feb 26, 2024
62 checks passed
@sjoerdsimons sjoerdsimons deleted the wip/obbardc/nspawn-add-pipe branch February 26, 2024 20:39
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.

GitLab CI runner doesn't show apt command output in log Terminal gets corrupted after debos call
2 participants