Skip to content

Conversation

@cgwalters
Copy link
Collaborator

When commit cd8fa59 moved unit enablement to a systemd generator, it also removed the installation of the fedora-bootc-destructive-cleanup script from the Makefile. This was unintentional - while the symlink enablement should be handled by the generator, the script itself still needs to be installed.

The trap is that because we weren't accurately removing old files from the build, the old version was still there...until the new upstream release.

Fix this in two ways:

First, continue to install the script on Fedora-like systems as before, but leave unit enablement to the generator as intended.

Second, change how we remove prior state to clean out all files from the RPM. (I did look at changing out the build system so we build an RPM in this case which would be cleaner, but it's a large change)

Fixes: #1748
Assisted-by: Claude Code (Sonnet 4.5)

When commit cd8fa59 moved unit enablement to a systemd generator, it also
removed the installation of the fedora-bootc-destructive-cleanup script from
the Makefile. This was unintentional - while the symlink enablement should
be handled by the generator, the script itself still needs to be installed.

The trap is that because we weren't accurately removing old files
from the build, the old version was still there...until the new upstream
release.

Fix this in two ways:

First, continue to install the script on Fedora-like systems as before, but leave unit
enablement to the generator as intended.

Second, change how we remove prior state to clean out all files from
the RPM. (I did look at changing out the build system so we build
an RPM in this case which would be cleaner, but it's a large change)

Fixes: bootc-dev#1748
Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <[email protected]>
@bootc-bot bootc-bot bot requested a review from gursewak1997 November 11, 2025 16:13
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 reinstalls the fedora-bootc-destructive-cleanup script, which was unintentionally removed in a previous change. It also improves the cleanup logic in the Dockerfile to be more robust. My review includes two suggestions to further improve the shell scripting used in these changes for better robustness and portability.

@cgwalters cgwalters enabled auto-merge (rebase) November 11, 2025 16:55
@cgwalters cgwalters requested a review from ckyrouac November 11, 2025 19:03
@cgwalters cgwalters merged commit 6734347 into bootc-dev:main Nov 11, 2025
36 of 38 checks passed
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.

test-install fell over

2 participants