Skip to content

fix(blockdev): include "internals" when spawning loopback-cleanup-helper #1511

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

Merged

Conversation

SamD2021
Copy link
Contributor

Adds the missing internals subcommand when spawning loopback-cleanup-helper so it runs as intended during bootc install --via-loopback. Without internals, the helper fails with unrecognized subcommand 'loopback-cleanup-helper', preventing loop device cleanup. This doesn’t block install/boot because the helper is fire-and-forget, but it leaves loop devices uncleared.

Fixes: #1510

Copy link
Contributor

@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 correctly fixes a bug where the loopback-cleanup-helper was being spawned with an incorrect command. By adding the missing internals subcommand, the helper process can now be invoked as intended, ensuring loop devices are properly cleaned up. The change is straightforward, well-contained, and effectively resolves the issue described. The implementation is clean and I have no further suggestions.

@SamD2021 SamD2021 marked this pull request as ready for review August 14, 2025 03:33
Without the "internals" prefix, bootc fails to spawn the
loopback-cleanup-helper because the helper is only available
under the `bootc internals` subcommand.
This patch updates the spawned command to include "internals" before
the helper name so it runs as intended.

Signed-off-by: Sam Dasilva <[email protected]>
@SamD2021 SamD2021 force-pushed the fix/blockdev-loopback-cleanup-helper branch from 04fa93e to 2e81362 Compare August 14, 2025 04:07
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Ouch. Thanks for finding and fixing this.

@cgwalters cgwalters merged commit c4bc043 into bootc-dev:main Aug 14, 2025
25 of 27 checks passed
@SamD2021
Copy link
Contributor Author

Glad to help! :)

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.

install --via-loopback: Loopback-cleanup-helper never invoked due to missing "internals" subcommand
2 participants