Skip to content

Conversation

@cgwalters
Copy link
Collaborator

The goal is to make it easier to debug entrypoint failures as one can do e.g.

$ bcvk ephemeral run -ti --debug-entrypoint bash -K --name mytestvm2 quay.io/fedora/fedora-bootc:42

(And also e.g. interactively inspect the state of the container before
bwrap and qemu is launched etc.)

The goal is to make it easier to debug entrypoint failures
as one can do e.g.

```
$ bcvk ephemeral run -ti --debug-entrypoint bash -K --name mytestvm2 quay.io/fedora/fedora-bootc:42
```

(And also e.g. interactively inspect the state of the container before
 bwrap and qemu is launched etc.)

Signed-off-by: Colin Walters <[email protected]>
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a --debug-entrypoint option to ephemeral run and ephemeral run-ssh commands, allowing users to override the default container entrypoint for debugging purposes. The implementation is straightforward and correctly applies the override when the option is provided. The changes also include updates to documentation.

My review includes one suggestion to improve the documentation for bcvk-ephemeral-run-ssh to clarify the expected behavior when using this new debug flag, which will prevent user confusion.


**--debug-entrypoint**=*DEBUG_ENTRYPOINT*

Do not run the default entrypoint directly, but instead invoke the provided command (e.g. `bash`)

Choose a reason for hiding this comment

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

medium

It would be helpful to add a note here explaining that using --debug-entrypoint with run-ssh will cause the command to time out waiting for SSH. This is because this option prevents the VM from starting, so SSH will never become available. This will help users understand the expected behavior when using this debug flag.

Suggested change
Do not run the default entrypoint directly, but instead invoke the provided command (e.g. `bash`)
Do not run the default entrypoint directly, but instead invoke the provided command (e.g. `bash`). Note that using this option will prevent the VM from starting, and the `run-ssh` command will time out waiting for a connection.

@cgwalters cgwalters enabled auto-merge (rebase) November 18, 2025 17:42
@cgwalters cgwalters requested a review from jmarrero November 19, 2025 18:02
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.

1 participant