Skip to content

Add --virtiofsd CLI option and VIRTIOFSD_BIN env var support#266

Merged
cgwalters merged 3 commits into
bootc-dev:mainfrom
nickryand:push-kpxpkoswxpww
May 23, 2026
Merged

Add --virtiofsd CLI option and VIRTIOFSD_BIN env var support#266
cgwalters merged 3 commits into
bootc-dev:mainfrom
nickryand:push-kpxpkoswxpww

Conversation

@nickryand
Copy link
Copy Markdown
Contributor

This should close out #265.

Copy link
Copy Markdown

@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 the ability to explicitly specify the path to the virtiofsd binary via a new configuration option, a --virtiofsd CLI flag, and a VIRTIOFSD_BIN environment variable. This allows users to override the default auto-detection logic. The changes span the virtiofsd spawning logic in bcvk-qemu and the CLI argument handling in kit. Feedback suggests improving error handling by verifying the existence of the user-provided path immediately and addressing potential path resolution or accessibility issues when the binary is used within a containerized environment.

Comment thread crates/bcvk-qemu/src/virtiofsd.rs Outdated
Comment thread crates/kit/src/run_ephemeral.rs
@nickryand nickryand force-pushed the push-kpxpkoswxpww branch from c939cff to 2a50a76 Compare May 14, 2026 19:55
@cgwalters
Copy link
Copy Markdown
Collaborator

Hi @nickryand there's some info here https://github.com/bootc-dev/bcvk/pull/266/checks?check_run_id=76126634878 on what you need to do for the DCO check.

@nickryand nickryand force-pushed the push-kpxpkoswxpww branch from 194d514 to 945e218 Compare May 21, 2026 05:05
nickryand added 2 commits May 20, 2026 22:21
Signed-off-by: Nick Downs <nickryand@gmail.com>
Signed-off-by: Nick Downs <nickryand@gmail.com>
@nickryand nickryand force-pushed the push-kpxpkoswxpww branch from 945e218 to 0fb84f0 Compare May 21, 2026 05:21
@nickryand
Copy link
Copy Markdown
Contributor Author

Thanks @cgwalters. I signed the commits and rebased against upstream.

@cgwalters
Copy link
Copy Markdown
Collaborator

Now needs a cargo fmt

Signed-off-by: Nick Downs <nickryand@gmail.com>
@nickryand
Copy link
Copy Markdown
Contributor Author

oof my bad. Should be complete.

@cgwalters cgwalters enabled auto-merge (squash) May 21, 2026 21:30
@cgwalters cgwalters merged commit f661aad into bootc-dev:main May 23, 2026
19 checks passed
pull Bot pushed a commit to TheTechOddBug/bootc that referenced this pull request May 28, 2026
Update bcvk-qemu to the latest version. The VirtiofsConfig struct
gained a virtiofsd_binary field in
bootc-dev/bcvk#266 (f661aad), so update
the struct literal in anaconda.rs accordingly.

Assisted-by: OpenCode (Claude claude-opus-4-6)
Signed-off-by: John Eckersberg <jeckersb@redhat.com>
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