Skip to content

podman machine start update connection should only prompt with tty #27556

@Luap99

Description

@Luap99

PD reported an issue that the new connection update prompt just hangs for them, while they could set the --update-connection=false flag that would fail on older podman version without that flag.

The reason the prompt hangs is because the command they spawn attached a pipe on stdin/our/err so stdin is not at EOF and as such our read blocks forever.

The simple fix here is to make sure stdin is a tty before prompting.

Other options would be to provide an env var that PD can set to disable the prompt or simply never prompt and just only update when --update-connection is set by a user.

Metadata

Metadata

Assignees

Labels

6.0Breaking changes for Podman 6.0kind/bugCategorizes issue or PR as related to a bug.machinepodman-desktoptriagedIssue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions